openwrtv4/package/base-files/default/etc/init.d/httpd
Florian Fainelli 0b1e4d027a Change httpd realm to match the hostname (#932)
SVN-Revision: 5464
2006-11-07 16:37:09 +00:00

13 lines
236 B
Bash
Executable file

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
start() {
include /lib/network
scan_interfaces
config_get ifname wan hostname
[ -d /www ] && httpd -p 80 -h /www -r ${hostname:-OpenWrt}
}
stop() {
killall httpd
}