fixing more deps...
[librewrt/.git] / packages / xwrt / webif-asterisk / etc / init.d / httpd
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=50
4
5 start() 
6 {
7   include /lib/network
8   scan_interfaces
9   config_get ifname wan hostname
10   [ -d /www ] && httpd -p 80 -h /www -r ${hostname:-OpenWrt}
11 ###   WebCallDisabled=$(nvram get "AST_WebCallDisabled")
12 ###  WebCallDisabled=$(uci get mars.system.AST_WebCallDisabled)
13   WebCallEnabled=$(uci get mars.webcall.AST_WebCallEnabled)
14
15
16   if [ "$WebCallEnabled" = "1" ]; then
17 ##  if [ "-$WebCallDisabled" = "-" ]; then
18     httpd -p 32345 -h /www/webcall -r MARS
19   fi
20
21 }
22
23 stop() {
24         killall httpd
25 }