1
0
镜像自地址 git://projects.qi-hardware.com/openwrt-xburst.git 已同步 2025-04-21 12:27:27 +03:00
文件
openwrt-xburst/package/busybox/files/httpd
mbm b2f4342440 START/STOP values must be specified in the init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7164 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 10:38:53 +00:00

15 行
245 B
Bash
可执行文件

#!/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
}