i have 2 oscam bin files in usr/bin folder.one is running well with this script how to edit following script in order to run other bin as well
not both in same time
#!/bin/sh
CAMNAME="OSCam 11546"
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
/usr/bin/oscam -b &
sleep 2
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall -9 oscam 2>/dev/null
sleep 1
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
if possible explain what is done with in each coding lines