Openwrt/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

14 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
}