X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/93c83b7d16192652859a0fe6fc6175f3b0879c59..f0845034ee1e6babeef0949390122a54dff3a156:/package/base-files/default/etc/init.d/S50httpd diff --git a/package/base-files/default/etc/init.d/S50httpd b/package/base-files/default/etc/init.d/S50httpd index 01772c12e..a05b10c09 100755 --- a/package/base-files/default/etc/init.d/S50httpd +++ b/package/base-files/default/etc/init.d/S50httpd @@ -1,2 +1,10 @@ -#!/bin/sh -[ -d /www ] && httpd -p 80 -h /www -r WRT54G Router +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +start() { + [ -d /www ] && httpd -p 80 -h /www -r OpenWrt +} + +stop() { + killall httpd +}