1st step
just run the command
crontab -e
add this line:
0 0 * * * root reboot
this will reboot your box every day at 24h
Short explanation:
minute / hour / day / month / dayofweek / command
0 / 0 / * / * / * / root reboot
2nd step
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=dyndns@dyndns.org
/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
just run the command
crontab -e
add this line:
0 0 * * * root reboot
this will reboot your box every day at 24h
Short explanation:
minute / hour / day / month / dayofweek / command
0 / 0 / * / * / * / root reboot
2nd step
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=dyndns@dyndns.org
/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