Follow along with the video below to see how to install our site as a web app on your home screen.
Note: this_feature_currently_requires_accessing_site_using_safari
L: 127.0.0.1 12345 user passwd 0500 030B00
L: 127.0.0.1 12345 user passwd 0500 023800
#!/bin/sh
# Define parameters here
# start-exe = executable to launch
# softcam1_param = full command line parameters to pass to executable
softcam1_exe="/usr/bin/CCcam"
softcam1_param="-C /etc/CCcam.cfg"
softcam2_exe="/usr/bin/OSEmu"
softcam2_param="-a user:passwd -p 12345 -b"
softcam_info="CCcam and OSemu"
remove_tmp ()
{
[ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
[ -e /tmp/.oscam ] && rm -rf /tmp/.oscam
[ -e /tmp/.console ] && rm -rf /tmp/.console
[ -e /tmp/camd.socket ] && rm -rf /tmp/camd.socket
}
case "$1" in
start)
start-stop-daemon -S -x $softcam1_exe -- $softcam1_param
start-stop-daemon -S -x $softcam2_exe -- $softcam2_param
;;
stop)
start-stop-daemon -K -R 2 -x $softcam1_exe
start-stop-daemon -K -R 2 -x $softcam2_exe
sleep 3
ps | grep $softcam1_exe | grep -v grep > /dev/null
if [ $? -eq 0 ]
then
killall -9 $softcam1_exe 2>/dev/null
fi
ps | grep $softcam2_exe | grep -v grep > /dev/null
if [ $? -eq 0 ]
then
killall -9 $softcam2_exe 2>/dev/null
fi
sleep 2
remove_tmp
;;
restart|reload)
$0 stop
sleep 2
$0 start
;;
version)
$softcam1_exe -V | head -n 1 | awk '{print $2}'
;;
info)
echo $softcam_info
;;
values)
echo "Command line started:"
echo $softcam1_exe $softcam1_param
echo $softcam2_exe $softcam2_param
;;
*)
echo "Usage: $0 start|stop|restart|version|info|values"
exit 1
;;
esac
exit 0