aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/default
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
commit0b1e4d027a89c182e35ac6acee6f1a8e04a992e1 (patch)
tree5716e59f825ca10b740034292f15058ee48f05f4 /package/base-files/default
parentb4d550ad84f5c0a23de4f3a2da0575852f2734e9 (diff)
downloadupstream-0b1e4d027a89c182e35ac6acee6f1a8e04a992e1.tar.gz
upstream-0b1e4d027a89c182e35ac6acee6f1a8e04a992e1.tar.bz2
upstream-0b1e4d027a89c182e35ac6acee6f1a8e04a992e1.zip
Change httpd realm to match the hostname (#932)
SVN-Revision: 5464
Diffstat (limited to 'package/base-files/default')
-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() {