From: Florian Fainelli Date: Tue, 7 Nov 2006 16:37:09 +0000 (+0000) Subject: Change httpd realm to match the hostname (#932) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=0f30f405c0d63c3854a3a92ac0cf375e79836a0f Change httpd realm to match the hostname (#932) SVN-Revision: 5464 --- 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() {