diff options
Diffstat (limited to 'package/base-files/default')
-rwxr-xr-x | package/base-files/default/etc/init.d/httpd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/base-files/default/etc/init.d/httpd b/package/base-files/default/etc/init.d/httpd index a05b10c094..e4f5f48e9c 100755 --- a/package/base-files/default/etc/init.d/httpd +++ b/package/base-files/default/etc/init.d/httpd @@ -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() { |