Browse Source

- add some goodies

master
vanhofen 7 years ago
parent
commit
d43293e9f3
  1. 28
      archive-imagefiles/scripts/camd.init

28
archive-imagefiles/scripts/camd.init

@ -9,6 +9,7 @@ F_NEWCS=".newcs"
F_OSEMU=".osemu" F_OSEMU=".osemu"
F_DOSCAM=".doscam" F_DOSCAM=".doscam"
F_OSCAM=".oscam" F_OSCAM=".oscam"
F_CCCAM=".cccam"
F_NCAM=".ncam" F_NCAM=".ncam"
F_GBOX=".gbox" F_GBOX=".gbox"
F_CS2GBOX=".cs2gbox" F_CS2GBOX=".cs2gbox"
@ -180,6 +181,26 @@ NCAM_Action()
esac esac
} }
CCCAM_Action()
{
case $1 in
"start" )
SHOWINFO "start cccam"
/var/bin/cccam &
sleep 10
;;
"stop" )
SHOWINFO "stop ccam"
killall cccam
* )
CCCAM_Action "stop"
sleep 1
CCCAM_Action "start"
;;
esac
}
GBOX_Action() GBOX_Action()
{ {
case $1 in case $1 in
@ -249,6 +270,9 @@ CAMD_Action()
"ncam") "ncam")
NCAM_Action $ACTION NCAM_Action $ACTION
;; ;;
"cccam")
CCCAM_Action $ACTION
;;
"newcs") "newcs")
NEWCS_Action $ACTION NEWCS_Action $ACTION
;; ;;
@ -280,6 +304,10 @@ CAMD_Action()
NCAM_Action $ACTION NCAM_Action $ACTION
fi fi
if [ -e $FLAGDIR/$F_CCCAM ]; then
CCCAM_Action $ACTION
fi
if [ -e $FLAGDIR/$F_NEWCS ]; then if [ -e $FLAGDIR/$F_NEWCS ]; then
NEWCS_Action $ACTION NEWCS_Action $ACTION
fi fi

Loading…
Cancel
Save