diff options
| author | Nicolas Thill <nico@openwrt.org> | 2005-10-02 22:51:39 +0000 |
|---|---|---|
| committer | Nicolas Thill <nico@openwrt.org> | 2005-10-02 22:51:39 +0000 |
| commit | bede0c5872e0084199e73e4518da0b5a1670a7e0 (patch) | |
| tree | 7f27dbd19ff78892d5024e9e7810a5ef57612e03 | |
| parent | 72c0a3c2fc53e0401148093dee9655dacf007c79 (diff) | |
| download | upstream-bede0c5872e0084199e73e4518da0b5a1670a7e0.tar.gz upstream-bede0c5872e0084199e73e4518da0b5a1670a7e0.tar.bz2 upstream-bede0c5872e0084199e73e4518da0b5a1670a7e0.zip | |
start httpd only if /www exists
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2032 3c298f89-4303-0410-b956-a3cf2f4a3e73
| -rwxr-xr-x | package/base-files/default/etc/init.d/S50httpd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/default/etc/init.d/S50httpd b/package/base-files/default/etc/init.d/S50httpd index 9cf551e5c6b..01772c12ead 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 |
