1. Reboot and Stand by
2. Start-stop Oscam Script
3.
4.
##########################
Reboot and Stand by
#########################
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
############################################
Start-stop Oscam Script
##########################################
No, pli hasn't got it via the blue panel. You have to put it there manually creating an empty file /etc/plimgr/cardservers/oscam
The below was posted by davo a while ago.
1. upload oscam binary in /usr/bin (chmod 0755)
2. create empty file /etc/plimgr/cardservers/oscam
# touch /etc/plimgr/cardservers/oscam
3. create script /etc/plimgr/scripts/oscam to start oscam (chmod 0755)
#!/bin/sh
case "$1" in
start)
echo "Starting oscam"
/usr/bin/oscam -b -c /etc/tuxbox/config
;;
stop)
echo "Stopping oscam"
killall oscam 2>/dev/null
;;
*)
$0 stop
exit 1
;;
esac
exit 0
##############################
No comments:
Post a Comment