1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org START=50 start() { include /lib/network scan_interfaces config_get ifname wan hostname [ -d /www ] && httpd -p 80 -h /www -r ${hostname:-OpenWrt} } stop() { killall httpd }