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