Hi Leute, wie muss ich das Startscript für Oscam unter Merlin3 oe2.0 ändern damit camd3 als keyserver mit gestartet wird
Anbei das Startscript des momentanen Oscam Startscripts
Danke für eure Hilfe schon mal im voraus
Anbei das Startscript des momentanen Oscam Startscripts
#!/bin/sh
CAM="oscam-oe2.0"
OSD="OScam"
PID=`pidof $CAM`
Action=$1
cam_clean () {
rm -rf /tmp/*.info* /tmp/.oscam /tmp/*.pid
}
cam_handle () {
if test -z "${PID}" ; then
cam_up;
else
cam_down;
fi;
}
cam_down () {
killall -9 $CAM
sleep 2
cam_clean
}
cam_up () {
/usr/bin/cam/$CAM -c /etc
}
if test "$Action" = "cam_startup" ; then
if test -z "${PID}" ; then
cam_down
cam_up
else
echo "$CAM already running, exiting..."
fi
elif test "$Action" = "cam_res" ; then
cam_down
cam_up
elif test "$Action" = "cam_down" ; then
cam_down
elif test "$Action" = "cam_up" ; then
cam_up
else
cam_handle
fi
exit 0
CAM="oscam-oe2.0"
OSD="OScam"
PID=`pidof $CAM`
Action=$1
cam_clean () {
rm -rf /tmp/*.info* /tmp/.oscam /tmp/*.pid
}
cam_handle () {
if test -z "${PID}" ; then
cam_up;
else
cam_down;
fi;
}
cam_down () {
killall -9 $CAM
sleep 2
cam_clean
}
cam_up () {
/usr/bin/cam/$CAM -c /etc
}
if test "$Action" = "cam_startup" ; then
if test -z "${PID}" ; then
cam_down
cam_up
else
echo "$CAM already running, exiting..."
fi
elif test "$Action" = "cam_res" ; then
cam_down
cam_up
elif test "$Action" = "cam_down" ; then
cam_down
elif test "$Action" = "cam_up" ; then
cam_up
else
cam_handle
fi
exit 0