add cccam to webif

Origin commit data
------------------
Commit: fda24c0888
Author: Knicko007 <knicko@glj.servebbs.com>
Date: 2019-06-26 (Wed, 26 Jun 2019)
This commit is contained in:
Knicko007
2019-06-26 22:06:43 +02:00
committed by vanhofen
parent 7fd631913c
commit bd2a281867
3 changed files with 94 additions and 0 deletions

View File

@@ -88,6 +88,20 @@ case "$1" in
echo "[$BNAME] ncam-reset"
/etc/init.d/camd reset ncam >/dev/console
;;
cccam_start)
echo "[$BNAME] cccam-start"
touch /var/etc/.cccam
/etc/init.d/camd start cccam >/dev/console
;;
cccam_stop)
echo "[$BNAME] cccam-stop"
rm -rf /var/etc/.cccam
/etc/init.d/camd stop cccam >/dev/console
;;
cccam_reset)
echo "[$BNAME] cccam-reset"
/etc/init.d/camd reset cccam >/dev/console
;;
doscam_start)
echo "[$BNAME] doscam-start"
touch /var/etc/.doscam

View File

@@ -258,6 +258,9 @@ case "$action" in
ncamstop) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh ncam_stop;;
ncamstart) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh ncam_start;;
ncamreset) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh ncam_reset;;
cccamstop) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh ccccam_stop;;
cccamstart) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh ccccam_start;;
cccamreset) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh cccam_reset;;
doscamstop) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh doscam_stop;;
doscamstart) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh doscam_start;;
doscamreset) %(PRIVATE_HTTPDDIR)/scripts/Y_NI_Camd-control.sh doscam_reset;;
@@ -287,6 +290,7 @@ case "$action" in
pidinfo) file2msg /tmp/pid.info "pid-info";;
oscamversion) file2msg /tmp/.oscam/oscam.version "oscam-info";;
ncamversion) file2msg /tmp/.ncam/ncam.version "ncam-info";;
ccccamversion) file2msg /tmp/.cccam/cccam.version "cccam-info";;
doscamversion) file2msg /tmp/.doscam/doscam.version "doscam-info";;
get_oscam_webif_port)
@@ -305,6 +309,14 @@ case "$action" in
printf "%s" ${_port:-8181}
;;
get_cccam_webif_port)
if [ -e %(CONFIGDIR)/CCcam.cfg ]; then
_port=$(grep -m 1 -i "^[:space:]*WEBINFO LISTEN PORT" /var/etc/CCcam.cfg | cut -d':' -f2)
_port=$(echo $_port | dos2unix -u)
fi
printf "%s" ${_port:-16001}
;;
get_doscam_webif_port)
if [ -e %(CONFIGDIR)/doscam.cfg ]; then
_port=$(grep -m 1 -i "^[:space:]*httpport" %(CONFIGDIR)/doscam.cfg | cut -d'=' -f2)