102 lines
3.1 KiB
Bash
Executable file
102 lines
3.1 KiB
Bash
Executable file
#! /bin/sh
|
|
|
|
PROFILE_CFG=/userfs/profile.cfg
|
|
if [ -f $PROFILE_CFG ] ; then
|
|
chmod 777 $PROFILE_CFG
|
|
. $PROFILE_CFG
|
|
fi
|
|
|
|
start()
|
|
{
|
|
if [ "$MSTC_TELEFONICA_UNIFYFW" != "" ] ; then
|
|
case `cat /proc/country` in
|
|
D1) #PE
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl.conf &
|
|
;;
|
|
D5) #ES
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl.conf &
|
|
;;
|
|
C4)
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_colombia.conf &
|
|
;;
|
|
C5)
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_Chile.conf &
|
|
;;
|
|
C6)
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_AR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo_AR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl_AR.conf &
|
|
;;
|
|
D0)
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_BR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo_BR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl_BR.conf &
|
|
;;
|
|
esac
|
|
else
|
|
if [ "$MSTC_TELEFONICA_HGU_COLOMBIA" != "" ] ;then
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_colombia.conf &
|
|
elif [ "$MSTC_SOPHIA_COMMON_GUI" != "" ] ;then
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_BR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo_BR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl_BR.conf &
|
|
elif [ "$MSTC_ARGENTINA_GUI" != "" ] ;then
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_AR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo_AR.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl_AR.conf &
|
|
elif [ "$MSTC_CHILE_GUI_ACCOUNT" != "" ] ;then
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_Chile.conf &
|
|
else
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_cpeInfo.conf &
|
|
/userfs/bin/mini_httpd -C /etc/mini_httpd_ssl.conf &
|
|
fi
|
|
fi
|
|
}
|
|
|
|
stop()
|
|
{
|
|
killall -9 mini_httpd
|
|
}
|
|
|
|
restart()
|
|
{
|
|
stop
|
|
start
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "Starting $NAME"
|
|
start
|
|
;;
|
|
stop)
|
|
echo "Stopping $NAME"
|
|
stop
|
|
;;
|
|
restart)
|
|
echo "Restarting $NAME"
|
|
restart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|
|
|