1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-17 00:14:59 +02:00
openwrt-xburst/package/busybox/files/httpd
nbd 6f447d09df move busybox init scripts from base-files into the busybox package and make them depend on busybox menuconfig options
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5620 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-22 23:06:40 +00:00

14 lines
236 B
Bash
Executable File

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