1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 03:39:22 +02:00
openwrt-xburst/package/base-files/default/etc/init.d/httpd
florian 2a048c6e56 Change httpd realm to match the hostname (#932)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5464 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-07 16:37:09 +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
}