summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/httpd
blob: e4f5f48e9cb966a7228ca4fc4fbd8a7be1c08e18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
}