Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > DreamBox > Plugins

Plugins Discussion, auto reboot dreambox at DreamBox forum; no luck here with those scripts using gemini 4.6 with a dreambox 500s any suggestions? (17-February-2010 15:32) Originally Posted by ...

Reply
 
LinkBack Thread Tools Display Modes
Old
  (#101)
Kaka1977
Junior Member
 
Kaka1977's Avatar
 
Offline
Posts: 19

Level: 3 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 52
Magic: 6 / 1279
Experience: 9%

Thanks: 8
Thanked 0 Times in 0 Posts
Join Date: Aug 2009
17-February-2010, 03:24

no luck here with those scripts using gemini 4.6 with a dreambox 500s any suggestions?

(17-February-2010 15:32)
Quote:
Originally Posted by Proxie_dk View Post
SuperB - this sollution worked :) thx man




(18-June-2009 20:18)
New problem... my TV set turns ON when DB reboots lol
this was (finally!) the solution for me on a db 500s with a gemini 4.70 image thx guys

well the reboot part is ok but once the system has rebooted it seems that crond (via blupanel menu) doesn't start by default any hints how to get this started once the db reboots?

(17-February-2010 18:15)
Quote:
Originally Posted by doudoubada View Post
use these two lines with crontab
34 02 * * * /bin/wget -O /tmp/wgettmp http://127.0.0.1/cgi-bin/admin?command=reboot
36 02 * * * /bin/wget -O /tmp/wgettmp http://127.0.0.1/cgi-bin/admin?command=standby
please could you explain how to do that with gemini? thx a lot

Last edited by Kaka1977; 17-February-2010 at 19:15.. Reason: Automerged Doublepost
   
Reply With Quote
Reboot then standby script
Old
  (#102)
hasenpubs
Junior Member
 
hasenpubs's Avatar
 
Offline
Posts: 2

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 15
Experience: 2%

Thanks: 2
Thanked 1 Time in 1 Post
Join Date: Jan 2010
Reboot then standby script - 01-March-2010, 16:08

Hi,

I use this script to reboot my dreambox at nights:


#!/bin/sh
#
# reboot dreambox when up for more than 24 hours and go to standby
#
# reboots only if the box isn't doing anything like:
# - recording
# - watching
# - serving an active CCcam client
#
# you can run this script from cron with a line like this:
#*/5 3-5 * * * /home/root/restart-box.sh
# so it tries to reboot every 5 minutes between 3 and 6 a.m.
#

#
restart_box()
{
# create a script in /etc/rc2.d to put enigma to sleep after the reboot
echo "sleep 120 && wget -q http://127.0.0.1/cgi-bin/admin?command=standby -O - &
rm -f /etc/rc2.d/Szzz" > /etc/rc2.d/Szzz
chmod 777 /etc/rc2.d/Szzz

# log this restart
#date >> /home/root/rebooted

# now we reboot, finally
wget -q http://127.0.0.1/cgi-bin/admin?command=reboot -O -
}

# we restart only if the box has been up for over a day
uptime | grep day || exit

# recording?
wget -q http://127.0.0.1/cgi-bin/status -O - | grep Recording | grep OFF || exit

# standby?
wget -q http://127.0.0.1/cgi-bin/status -O - | grep Standby | grep ON || exit

# CCcam running?
ps | grep CCcam | grep var || restart_box

# no active CCcam clients?
wget -q http://127.0.0.1:16001/activeclients -O - | grep "0 ACTIVE CLI" && restart_box



As said in the code, add this to your crontab and run it often, once restarted, the machine won't be rebooted till the next day...

Works well on a DM 600 with Gemini. Should run on others, too.


hasenpubs
   
Reply With Quote
Sponsored Links
Old
  (#103)
cold007
Super Moderator
 
cold007's Avatar
 
Offline
Posts: 9,448

Level: 63 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 314 / 1570
Magic: 3149 / 48874
Experience: 82%

Thanks: 5,191
Thanked 4,423 Times in 2,537 Posts
Join Date: Apr 2007
Location: germany -unterfranken..
01-March-2010, 17:33

Quote:
Originally Posted by hasenpubs View Post
Hi,

I use this script to reboot my dreambox at nights:


#!/bin/sh
#
# reboot dreambox when up for more than 24 hours and go to standby
#
# reboots only if the box isn't doing anything like:
# - recording
# - watching
# - serving an active CCcam client
#
# you can run this script from cron with a line like this:
#*/5 3-5 * * * /home/root/restart-box.sh
# so it tries to reboot every 5 minutes between 3 and 6 a.m.
#

#
restart_box()
{
# create a script in /etc/rc2.d to put enigma to sleep after the reboot
echo "sleep 120 && wget -q http://127.0.0.1/cgi-bin/admin?command=standby -O - &
rm -f /etc/rc2.d/Szzz" > /etc/rc2.d/Szzz
chmod 777 /etc/rc2.d/Szzz

# log this restart
#date >> /home/root/rebooted

# now we reboot, finally
wget -q http://127.0.0.1/cgi-bin/admin?command=reboot -O -
}

# we restart only if the box has been up for over a day
uptime | grep day || exit

# recording?
wget -q http://127.0.0.1/cgi-bin/status -O - | grep Recording | grep OFF || exit

# standby?
wget -q http://127.0.0.1/cgi-bin/status -O - | grep Standby | grep ON || exit

# CCcam running?
ps | grep CCcam | grep var || restart_box

# no active CCcam clients?
wget -q http://127.0.0.1:16001/activeclients -O - | grep "0 ACTIVE CLI" && restart_box



As said in the code, add this to your crontab and run it often, once restarted, the machine won't be rebooted till the next day...

Works well on a DM 600 with Gemini. Should run on others, too.


hasenpubs
you forgot to

!!
...

unfortunatly...rule 5# broken,,with this quoted post..

its about time u visit the introduction section...

tutorials

when this prewarning goes ignored..warning will follow.

cold007


dreambox 8000- box with icvs images!!

remember u SPAM = i BAN

activley hunting nline stealers...!

beware...of with whom you share!!




   
Reply With Quote
The Following User Says Thank You to cold007 For This Useful Post:
hasenpubs (02-March-2010)
reboot dreambox
Old
  (#104)
ay211
Junior Member
 
ay211's Avatar
 
Offline
Posts: 2

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 15
Experience: 2%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Feb 2010
reboot dreambox - 30-March-2010, 14:50

is that this also works for Nabilo image??
   
Reply With Quote
Old
  (#105)
hpl1950
Member
 
hpl1950's Avatar
 
Offline
Posts: 52

Level: 6 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 126
Magic: 17 / 3025
Experience: 5%

Thanks: 2
Thanked 10 Times in 8 Posts
Join Date: Oct 2009
Thumbs up 30-March-2010, 23:39

Quote:
Originally Posted by dotseh View Post
-Put this Below code in a file called "reboot_timer.sh"
-Set attributes to 755.
-Blue button, services/daemons (gemini 4.70), activate Crond to "running".
-Now select Crond setup and select "new"
-minutes=off, hours=time (3:00am), day=every, month=every, weekday=every
-Finally command=reboot_timer.sh

Code:
#!/bin/sh

echo "its time to reboot"
#shutdown -r now
reboot
exit 0
Reboots at 3am every day. Necessary I think as CCcam can become buggy after long periods. Works nicely for me.
Very useful script and realy works.
   
Reply With Quote
Old
  (#106)
Nashville
Nine Darter
 
Nashville's Avatar
 
Offline
Posts: 222

Level: 13 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 322
Magic: 74 / 8372
Experience: 91%

Thanks: 57
Thanked 64 Times in 35 Posts
Join Date: Feb 2009
Location: Nordic Beam
Age: 39
31-March-2010, 11:26

This is the script I use for reboot with DM800 enigma2. Like others script insert in var/script and make 755 rights, then setup with cron:

wget -q -O - http://127.0.0.1/web/powerstate?newstate=2


Only change number after newstate if you want different process:
  • 0 = Standby
  • 1 = Deepstandby
  • 2 = Reboot
  • 3 = Restart Enigma2


DM7000 -800; 45East to 43West DiseqC 1.2

Last edited by Nashville; 31-March-2010 at 12:09..
   
Reply With Quote
The Following 3 Users Say Thank You to Nashville For This Useful Post:
djah (11-July-2011), doggone1 (17-April-2010), doudou425 (11-April-2010)
Old
  (#107)
leonpadi
Guest
 
leonpadi's Avatar
 
Posts: n/a

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 0
Experience: 0%



Warn: (0%)
17-April-2010, 15:41

Can someone reply if the above script ( post 110 http://www.eurocardsharing.com/429887-post110.html ) works on enigma1 boxes like dm500s ?
   
Reply With Quote
Old
  (#108)
devil007
Junior Member
 
devil007's Avatar
 
Offline
Posts: 17

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 46
Magic: 5 / 1113
Experience: 86%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2009


07-November-2010, 13:27

Allright Guys!

I went all trough that, but noting is working for me though.

I got a DM 7020 si with Gemini 4.7 on it.

I would like to restart my box every day at 12:00 (lunchtime)
and go to standby everyday at 12:05 (lunchtime as well)

I have no iadea what crond and all that stuff should be, so please gimme advise and tell me how-to as you would explain it to a 5 year old child :-P

Regards!
   
Reply With Quote
Old
  (#109)
hpl1950
Member
 
hpl1950's Avatar
 
Offline
Posts: 52

Level: 6 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 126
Magic: 17 / 3025
Experience: 5%

Thanks: 2
Thanked 10 Times in 8 Posts
Join Date: Oct 2009


07-November-2010, 23:23

Quote:
Originally Posted by devil007 View Post
Allright Guys!

I went all trough that, but noting is working for me though.

I got a DM 7020 si with Gemini 4.7 on it.

I would like to restart my box every day at 12:00 (lunchtime)
and go to standby everyday at 12:05 (lunchtime as well)

I have no iadea what crond and all that stuff should be, so please gimme advise and tell me how-to as you would explain it to a 5 year old child :-P

Regards!
Try to use option "search" over this forum and you will find useful information.
   
Reply With Quote
Old
  (#110)
paolone86
Junior Member
 
paolone86's Avatar
 
Offline
Posts: 5

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 8
Magic: 1 / 277
Experience: 34%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2006


06-December-2010, 11:42

does work with sif image e1 ??? thanks
   
Reply With Quote
Reply

Bookmarks

Tags
yes works well thx man


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox