Bom dia, tenho uma azbox com E2 na imagem RC3, instalei os files todos do mbox(penso q estejam correctos) e o script nao m arranca automaticamente. Se eu arrancar por telnet ele arranca direitinho, onde será o erro para nao arrancar automatico? o script está na pasta usr/script e é o seguinte:
#!/bin/sh
CAMD_ID=7000
CAMD_NAME="Mbox 0.6.0010"
CAMD_BIN=mbox_0.6.0010
INFOFILE_A=ecm0.info
INFOFILE_B=ecm1.info
INFOFILE_C=ecm2.info
INFOFILE_D=ecm3.info
#Expert window
INFOFILE_LINES=1111111111000000
#Zapp after start
REZAPP=0
########################################
logger $0 $1
echo $0 $1
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
remove_tmp
/usr/bin/$CAMD_BIN &
;;
stop)
killall -9 $CAMD_BIN 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
abraços
#!/bin/sh
CAMD_ID=7000
CAMD_NAME="Mbox 0.6.0010"
CAMD_BIN=mbox_0.6.0010
INFOFILE_A=ecm0.info
INFOFILE_B=ecm1.info
INFOFILE_C=ecm2.info
INFOFILE_D=ecm3.info
#Expert window
INFOFILE_LINES=1111111111000000
#Zapp after start
REZAPP=0
########################################
logger $0 $1
echo $0 $1
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
remove_tmp
/usr/bin/$CAMD_BIN &
;;
stop)
killall -9 $CAMD_BIN 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
abraços