sidney70
29-06-2008, 09:37
zanimam me kako podesit dm 7020 da mi radi auto reboot u odredjeno vreme ... a onda da ide u standby ??? pokusavao sam ovu skriptu a ne radi ???? ili ne znam kako... ???
make with notepad and save time_reboot.sh and next put in dream var/scripts
#begin script for reboot at 04 am
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
#end script
#begin for standby 4h:10m am
#!/bin/sh
strHour="04"
strMin="10"
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 sleep"
sleep 8
fi
exit 0
else
#echo "its time to sleep"
sleep 8
fi
done
#end plugin standby
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
make with notepad and save time_reboot.sh and next put in dream var/scripts
#begin script for reboot at 04 am
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
#end script
#begin for standby 4h:10m am
#!/bin/sh
strHour="04"
strMin="10"
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 sleep"
sleep 8
fi
exit 0
else
#echo "its time to sleep"
sleep 8
fi
done
#end plugin standby
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