start httpd only if /www exists
authorNicolas Thill <nico@openwrt.org>
Sun, 2 Oct 2005 22:51:39 +0000 (22:51 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 2 Oct 2005 22:51:39 +0000 (22:51 +0000)
SVN-Revision: 2032

openwrt/package/base-files/default/etc/init.d/S50httpd

index 9cf551e5c6b2292280c51fea251611ec54d9a6e7..01772c12ead1e5e8dd79f9819d36344619977952 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-httpd -p 80 -h /www -r WRT54G Router
+[ -d /www ] && httpd -p 80 -h /www -r WRT54G Router