From 2a048c6e56319c3ad2a7fd337b7930f09959df3a Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 7 Nov 2006 16:37:09 +0000 Subject: [PATCH] Change httpd realm to match the hostname (#932) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5464 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/default/etc/init.d/httpd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() { -- 2.35.1