2006-10-04 20:05:48 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2006-06-27 00:36:13 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2006-06-27 00:36:13 +00:00
|
|
|
|
2006-10-04 20:05:48 +00:00
|
|
|
start() {
|
2006-11-07 16:37:09 +00:00
|
|
|
include /lib/network
|
|
|
|
scan_interfaces
|
|
|
|
config_get ifname wan hostname
|
|
|
|
[ -d /www ] && httpd -p 80 -h /www -r ${hostname:-OpenWrt}
|
2006-10-04 20:05:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
killall httpd
|
|
|
|
}
|