From: Nicolas Thill Date: Sun, 2 Oct 2005 22:51:39 +0000 (+0000) Subject: start httpd only if /www exists X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=bede0c5872e0084199e73e4518da0b5a1670a7e0;p=15.05%2Fopenwrt.git start httpd only if /www exists git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2032 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/default/etc/init.d/S50httpd b/package/base-files/default/etc/init.d/S50httpd index 9cf551e5c6..01772c12ea 100755 --- a/package/base-files/default/etc/init.d/S50httpd +++ b/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