Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > DreamBox > Plugins

Plugins Discussion, auto reboot dreambox at DreamBox forum; Add as file reboot_timer.sh in map /var/script (chmod 755!!) #!/bin/sh strHour="04" strMin="00" while true do DateSTR=`date +%H%M%S` #echo "$DateSTR" if ...

Reply
 
LinkBack Thread Tools Display Modes
auto reboot dreambox
Old
  (#1)
Librarian
ECS Master
 
Librarian's Avatar
 
Offline
Posts: 10,625

Level: 66 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 489 / 1631
Magic: 3541 / 53662
Experience: 27%

Thanks: 502
Thanked 6,374 Times in 2,463 Posts
Join Date: Nov 2006
Location: 127.0.0.1
auto reboot dreambox - 24-February-2008, 20:51

Add as file reboot_timer.sh in map /var/script (chmod 755!!)

#!/bin/sh

strHour="04"
strMin="00"

while true
do
DateSTR=`date +%H%M%S`
#echo "$DateSTR"
if [ "$DateSTR" -ge "$strHour$strMin"00 ] && [ "$DateSTR" -le "$strHour$strMin"10 ]; then
echo "its time to reboot"
#shutdown -r now
reboot
exit 0
else
#echo "do sleeping"
sleep 8
fi
done

Add as inadyn_script.sh in map /var/script/

[email protected]
/var/script/reboot_timer.sh &

test -f $DAEMON || exit 0

set -e

Reboot the dreambox and it should now auto reboot every night at 04 00



If you feel the need use the button.

It is better to give than to take, to share is divine..........
   
Reply With Quote
The Following 82 Users Say Thank You to Librarian For This Useful Post:
07sika (25-March-2010), alarmdan (17-December-2009), alcarem (24-February-2008), aliman (24-February-2008), BM300 (11-April-2011), bmw318mt (25-February-2008), bokerom (19-April-2008), camadacj (20-November-2010), caszw (10-June-2009), chiccon (23-October-2008), choco (03-March-2008), Cockpit (14-November-2009), cold007 (25-April-2008), csanil (02-April-2010), daniel123 (18-June-2009), Darkman (04-April-2010), deskag (03-July-2009), dimpap (20-April-2009), doctor-john (27-February-2008), dream09 (06-November-2008), dream3 (10-October-2008), ednet (08-March-2009), eng_hady (28-April-2009), erdi01 (15-September-2009), esgravilha (19-March-2008), evan12 (26-April-2009), flims (30-January-2009), forko (15-August-2008), gonococo (20-September-2010), GooGle12 (08-September-2008), greg-cccam (24-February-2008), haroon (24-February-2008), hax4or (22-December-2010), humax7 (02-August-2009), hutchy (04-April-2008), ibb549 (05-April-2009), ikke5713 (08-December-2010), jaouhar (22-June-2009), jarjartv (19-September-2008), joaodiz (25-July-2009), kaffegutten (12-May-2009), KAKA12 (22-January-2009), katze17 (23-February-2010), kostastnt (24-February-2008), liki11 (08-April-2011), loulou2006 (17-March-2010), maevnat (07-February-2009), mamitano (15-June-2010), mapouka (17-February-2009), mc_speed (07-May-2010), melt (02-March-2008), Mescalero (04-January-2010), miguel30791 (28-March-2010), MK22 (24-February-2008), mona66 (05-December-2008), morten9836 (28-September-2008), neohack (28-April-2009), otall (02-March-2008), pantgr (20-October-2009), planetsat (21-November-2009), pmed255 (29-April-2008), Rahan (12-August-2009), sarajacet (14-November-2009), satplanet (06-July-2009), seddie (28-April-2008), sever9002 (07-October-2009), showtimeShare (12-November-2009), Sidney70 (29-June-2008), skybot1 (25-February-2008), sphinx18 (10-April-2010), starboy (05-April-2009), sudoo (20-April-2010), svenni (05-March-2009), TaRgUiStI (03-October-2008), tech25 (25-February-2008), the poor (12-May-2009), tonykok (10-November-2010), tv_vl (15-March-2008), user010 (22-July-2010), u_hayati (26-June-2009), vasilisgreta (29-March-2008), zoltar (24-December-2010)
Old
  (#2)
tech25
Permanent Banned
 
tech25's Avatar
 
Offline
Posts: 11

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 28
Magic: 3 / 869
Experience: 12%

Thanks: 6
Thanked 1 Time in 1 Post
Join Date: Aug 2007
25-February-2008, 12:47

Thanx mate.
This is really helpful.

Can i still be able to use the inadyn functionality or no?
   
Reply With Quote
The Following User Says Thank You to tech25 For This Useful Post:
mc_speed (07-May-2010)
Sponsored Links
Old
  (#3)
melt
Junior Member
 
melt's Avatar
 
Offline
Posts: 14

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 37
Magic: 4 / 1127
Experience: 50%

Thanks: 1
Thanked 4 Times in 3 Posts
Join Date: Nov 2007
02-March-2008, 15:10

yes works well thx man
   
Reply With Quote
The Following User Says Thank You to melt For This Useful Post:
flims (30-January-2009)
Old
  (#4)
jakas
ECS Master
 
jakas's Avatar
 
Offline
Posts: 1,227

Level: 30 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 736
Magic: 409 / 22242
Experience: 47%

Thanks: 320
Thanked 283 Times in 210 Posts
Join Date: Oct 2007
02-March-2008, 15:15

does it reboot and go to standby if it was on standby
   
Reply With Quote
Old
  (#5)
Sharkadder
Senior Member
 
Sharkadder's Avatar
 
Offline
Posts: 167

Level: 11 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 274
Magic: 55 / 8164
Experience: 96%

Thanks: 3
Thanked 29 Times in 12 Posts
Join Date: Dec 2007
Location: Teesside (North East England)
02-March-2008, 15:45

erm...no that isn't how rebooting works my friend, you would need some sort of script to say once rebooted go in sleep mode, i.e. standby.

maybe our freind can give that script, unles his script does do that, i may be unsure. Test his script out to see
   
Reply With Quote
Old
  (#6)
prischy
Member
 
prischy's Avatar
 
Offline
Posts: 69

Level: 7 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 155
Magic: 23 / 5128
Experience: 21%

Thanks: 3
Thanked 31 Times in 14 Posts
Join Date: Nov 2006
Thumbs up 02-March-2008, 16:26

reboot_timer.sh script

Download
   
Reply With Quote
Old
  (#7)
melt
Junior Member
 
melt's Avatar
 
Offline
Posts: 14

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 37
Magic: 4 / 1127
Experience: 50%

Thanks: 1
Thanked 4 Times in 3 Posts
Join Date: Nov 2007
02-March-2008, 18:16

the script is good if your box cannot make reboot he put in sleep mode
   
Reply With Quote
Old
  (#8)
jakas
ECS Master
 
jakas's Avatar
 
Offline
Posts: 1,227

Level: 30 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 736
Magic: 409 / 22242
Experience: 47%

Thanks: 320
Thanked 283 Times in 210 Posts
Join Date: Oct 2007
02-March-2008, 18:32

Quote:
Originally Posted by melt View Post
the script is good if your box cannot make reboot he put in sleep mode
But I want it to make reboot and then sleep I see no timing when it does it can u explain more

(02-March-2008 17:36)
Quote:
Originally Posted by prischy View Post
reboot_timer.sh script

Download
what you posted and what is posted above what is the diffrence except for that url Lol

(02-March-2008 17:37)
#!/bin/sh

strHour="04"
strMin="00"

while true
do
DateSTR=`date +%H%M%S`
#echo "$DateSTR"
if [ "$DateSTR" -ge "$strHour$strMin"00 ] && [ "$DateSTR" -le "$strHour$strMin"10 ]; then
echo "its time to reboot"
#shutdown -r now
reboot
exit 0
else
#echo "do sleeping"
sleep 8
fi
done

Last edited by jakas; 02-March-2008 at 18:37.. Reason: Automerged Doublepost
   
Reply With Quote
Old
  (#9)
melt
Junior Member
 
melt's Avatar
 
Offline
Posts: 14

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 37
Magic: 4 / 1127
Experience: 50%

Thanks: 1
Thanked 4 Times in 3 Posts
Join Date: Nov 2007
02-March-2008, 18:37

#!/bin/sh

strHour="04" #hours
strMin="00" #minutes

while true
do
DateSTR=`date +%H%M%S`
#echo "$DateSTR"

if [ "$DateSTR" -ge "$strHour$strMin"00 ] && [ "$DateSTR" -le "$strHour$strMin"10 ]; then

echo "its time to reboot"
#shutdown -r now
reboot
exit 0
else
#echo "do sleeping"
sleep 8
fi
done



this script make a try for reboot your dream if cannot he put him sleeping
   
Reply With Quote
The Following User Says Thank You to melt For This Useful Post:
luisraposin (26-February-2010)
Old
  (#10)
jakas
ECS Master
 
jakas's Avatar
 
Offline
Posts: 1,227

Level: 30 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 736
Magic: 409 / 22242
Experience: 47%

Thanks: 320
Thanked 283 Times in 210 Posts
Join Date: Oct 2007
02-March-2008, 18:38

and if he reboot then ??
   
Reply With Quote
The Following 3 Users Say Thank You to jakas For This Useful Post:
2005youssef (22-September-2008), karmoussa1962 (01-November-2008), preamch (18-June-2009)
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