X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5eca1169a020f0d082a08ff282375f2ae2915503..a2e6a5c0995cbd0e5ecd95ddb42d2c67f3c28c59:/package/base-files/default/etc/init.d/httpd diff --git a/package/base-files/default/etc/init.d/httpd b/package/base-files/default/etc/init.d/httpd index a05b10c09..e4f5f48e9 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() {