aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-11-07 16:37:09 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-11-07 16:37:09 +0000
commitc3ee48d9f9abf0c6f8ce2cb6092cb9e0fc87a869 (patch)
treeb74dec58c9b7e85716943bed1c0e2eca532128ac /package
parented338a0b8c4ba3816f518a3d71246bafc419e187 (diff)
downloadupstream-c3ee48d9f9abf0c6f8ce2cb6092cb9e0fc87a869.tar.gz
upstream-c3ee48d9f9abf0c6f8ce2cb6092cb9e0fc87a869.tar.bz2
upstream-c3ee48d9f9abf0c6f8ce2cb6092cb9e0fc87a869.zip
Change httpd realm to match the hostname (#932)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5464 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/default/etc/init.d/httpd5
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() {