View Single Post
  #4  
Old 12-03-2021, 07:15  Translate from English to Italian  Translate from English to French  Translate from English to German  Translate from English to Spanish  Translate from English to Dutch  Translate from English to Greek  Translate from English to Portuguese  Translate from English to Russian  Translate from English to Russian
intercepter intercepter is offline
Member
 
Join Date: Aug 2008
Posts: 28
Thanks: 1
Thanked 32 Times in 11 Posts
Country: Country Flag
Default

Both script not working.
This script working,and you can change config path.

#!/bin/sh

CAMNAME="OSCam"
USERNAME=""
ZAPTIME=6
CAMID=9999
DVBSET=0
INFOFILE="ecm.info"
INFOFILELINES=
# end

remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}

case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
/var/bin/oscam --config-dir /var/tuxbox/config/oscam &
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall oscam 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac

exit 0
Reply With Quote