put your
ping.check.sh in
/usr/script
give it 755
in the script just put this
ping bbc.co.uk &
now place the
Ncam_Ping.sh (file is below)
in
/usr/camscript
give it 755
now press the blue button
and select ping
and press ok
the script will now run
press the blue button again
and select cccam or whatever you use
to watch your channels
the script will still run in the background
to stop the script
go to network on your DM
and restart network
the script will then stop running
this is how i made it
i got a oscam cam script and edited the file names and path
which i have highlighted in
green
you could run any script this way
Ncam_Ping.sh
Code:
#!/bin/sh
CAMNAME="[COLOR=#00ff00]PING[/COLOR]"
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
[COLOR=#00ff00]/usr/script/ping.check.sh[/COLOR] &
sleep 10
[COLOR=#00ff00]/usr/script/[/COLOR]&
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall -9 2>/dev/null
sleep 3
killall -9 [COLOR=#00ff00]ping.check.sh[/COLOR] 2>/dev/null
sleep 3
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
ping.check.sh