Browse Source

- skel-root: sort code in camd.init script

master
vanhofen 5 years ago
parent
commit
022b3e483e
  1. 24
      skel-root/general/scripts/camd.init

24
skel-root/general/scripts/camd.init

@ -7,9 +7,9 @@ FLAGDIR="/var/etc"
F_MGCAM=".mgcamd" F_MGCAM=".mgcamd"
F_DOSCAM=".doscam" F_DOSCAM=".doscam"
F_OSCAM=".oscam" F_OSCAM=".oscam"
F_CCCAM=".cccam"
F_OSMOD=".osmod" F_OSMOD=".osmod"
F_NCAM=".ncam" F_NCAM=".ncam"
F_CCCAM=".cccam"
F_GBOX=".gbox" F_GBOX=".gbox"
MGCAM_Action() MGCAM_Action()
@ -209,8 +209,8 @@ GBOX_Action()
CAMD_Action() CAMD_Action()
{ {
case $1 in case $1 in
"gbox") "mgcamd")
GBOX_Action $ACTION MGCAM_Action $ACTION
;; ;;
"doscam") "doscam")
DOSCAM_Action $ACTION DOSCAM_Action $ACTION
@ -218,21 +218,21 @@ CAMD_Action()
"oscam") "oscam")
OSCAM_Action $ACTION OSCAM_Action $ACTION
;; ;;
"ncam")
NCAM_Action $ACTION
;;
"osmod") "osmod")
OSMOD_Action $ACTION OSMOD_Action $ACTION
;; ;;
"ncam")
NCAM_Action $ACTION
;;
"cccam") "cccam")
CCCAM_Action $ACTION CCCAM_Action $ACTION
;; ;;
"mgcamd") "gbox")
MGCAM_Action $ACTION GBOX_Action $ACTION
;; ;;
*) *)
if [ -e $FLAGDIR/$F_GBOX ]; then if [ -e $FLAGDIR/$F_MGCAM ]; then
GBOX_Action $ACTION MGCAM_Action $ACTION
fi fi
if [ -e $FLAGDIR/$F_DOSCAM ]; then if [ -e $FLAGDIR/$F_DOSCAM ]; then
@ -255,8 +255,8 @@ CAMD_Action()
CCCAM_Action $ACTION CCCAM_Action $ACTION
fi fi
if [ -e $FLAGDIR/$F_MGCAM ]; then if [ -e $FLAGDIR/$F_GBOX ]; then
MGCAM_Action $ACTION GBOX_Action $ACTION
fi fi
;; ;;
esac esac

Loading…
Cancel
Save