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 | b46460d5847c8d5d09063ae04049cd27ea492084 (patch) | |
tree | f47c87776369239324da6d51928d6f87977a15c0 /openwrt/package/base-files/default/etc/init.d | |
parent | 926728c2e791a5e11616d303192e2fd5af0c22b1 (diff) | |
download | mtk-20170518-b46460d5847c8d5d09063ae04049cd27ea492084.zip mtk-20170518-b46460d5847c8d5d09063ae04049cd27ea492084.tar.gz mtk-20170518-b46460d5847c8d5d09063ae04049cd27ea492084.tar.bz2 |
start httpd only if /www exists
SVN-Revision: 2032
Diffstat (limited to 'openwrt/package/base-files/default/etc/init.d')
-rwxr-xr-x | openwrt/package/base-files/default/etc/init.d/S50httpd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S50httpd b/openwrt/package/base-files/default/etc/init.d/S50httpd index 9cf551e..01772c1 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 |