bonsoir
j ai trouver ce script mais je le trouve beacoup different du miens
est ce que je peux le mettre a la place de l autre
merci
Voici le script pour OpenPLi
#!/bin/sh
# Define parameters here
# softcam1_exe = executable to launch for 1st softcam
# softcam1_param = full command line parameters to pass to executable 1st softcam
# softcam2_exe = executable to launch for 2nd softcam
# softcam2_param = full command line parameters to pass to executable 2nd softcam
softcam1_exe="/usr/bin/oscam"
softcam1_param="-b -r 2 -c /etc/tuxbox/config/oscam"
softcam2_exe="/usr/bin/OSEmu"
softcam2_param="-a user
assword -p 12345 -b"
softcam_info="OScam 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