Auto reboot dream box 520

steakunkidney

Member ++
Joined
Jan 29, 2006
Messages
531
Reaction score
11
Hi guys, looking for a way to reboot my dream box 520 every day at a certain time I’m running open pli image 6.2

found the below on the net but I have no idea where to put this script or how to execute it, can somebody help/advise me with this

many thanks




Auto Reboot on DM 7020
All, I want to reboot a dm7020 nightly to improve performance of the box.

I found this on the web and wonder if someone has any knowledge of it.

Auto reboot dreambox

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/

DYN_SYSTEM=[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
 
That is a script not sure it would work on enigma2 to but you can try it

Unrar file attached

FTP into your box and transfer the file to var/script
Now right click it and select chmod 755 then save.
Reboot


This can also be done with a cron tab but not sure where the crontab manager is in openpli
 

Attachments

  • reboot_timer.sh.rar
    287 bytes · Views: 3
That is a script not sure it would work on enigma2 to but you can try it

Unrar file attached

FTP into your box and transfer the file to var/script
Now right click it and select chmod 755 then save.
Reboot


This can also be done with a cron tab but not sure where the crontab manager is in openpli


Thank you Ferret, however there is not a var/script file in image structure, im sure ive seen one somewhere will have to have a poke around in the image or do i just create one ?
 
OK think pli run scripts in either

/etc/init.d/

/usr/script/

You still need crontab setup to run it

If i had openpli on a box i could be more helpful unfortunately i dont.
 
Last edited:
Ok so I’ve put the unrar file in /etc/init.d

anybody help how to set up crontab ? There are various Cron folders in etc
 
Back
Top