add support for -t 0 (infinite retry) in busybox udhcpc and use it in the network...
[openwrt.git] / package / base-files / default / etc / init.d / httpd
index a05b10c..e4f5f48 100755 (executable)
@@ -2,7 +2,10 @@
 # Copyright (C) 2006 OpenWrt.org
 
 start() {
-       [ -d /www ] && httpd -p 80 -h /www -r OpenWrt
+       include /lib/network
+       scan_interfaces
+        config_get ifname wan hostname
+       [ -d /www ] && httpd -p 80 -h /www -r ${hostname:-OpenWrt}
 }
 
 stop() {
This page took 0.021471 seconds and 4 git commands to generate.