From: Florian Fainelli Date: Tue, 7 Nov 2006 16:37:09 +0000 (+0000) Subject: Change httpd realm to match the hostname (#932) X-Git-Tag: whiterussian_0.9~98 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=1a8ea186ef2e834087add01d263382faed515671;p=openwrt%2Fsvn-archive%2Fopenwrt.git Change httpd realm to match the hostname (#932) SVN-Revision: 5464 --- diff --git a/openwrt/package/base-files/default/etc/init.d/S50httpd b/openwrt/package/base-files/default/etc/init.d/S50httpd index 1217aabe70..1bbf8a6a2a 100755 --- a/openwrt/package/base-files/default/etc/init.d/S50httpd +++ b/openwrt/package/base-files/default/etc/init.d/S50httpd @@ -1,2 +1,5 @@ #!/bin/sh -httpd -p 80 -h /www -r OpenWrt +. /etc/functions.sh +REALM=$(nvram get wan_hostname) +REALM=${REALM%%.*} +httpd -p 80 -h /www -r ${REALM:-OpenWrt}