From: Nicolas Thill Date: Sun, 2 Oct 2005 22:51:39 +0000 (+0000) Subject: start httpd only if /www exists X-Git-Tag: reboot~31954 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b46460d5847c8d5d09063ae04049cd27ea492084;p=openwrt%2Fstaging%2Fblogic.git start httpd only if /www exists SVN-Revision: 2032 --- diff --git a/openwrt/package/base-files/default/etc/init.d/S50httpd b/openwrt/package/base-files/default/etc/init.d/S50httpd index 9cf551e5c6b2..01772c12ead1 100755 --- a/openwrt/package/base-files/default/etc/init.d/S50httpd +++ b/openwrt/package/base-files/default/etc/init.d/S50httpd @@ -1,2 +1,2 @@ #!/bin/sh -httpd -p 80 -h /www -r WRT54G Router +[ -d /www ] && httpd -p 80 -h /www -r WRT54G Router