diff options
Diffstat (limited to 'package/mini_httpd')
-rw-r--r-- | package/mini_httpd/files/mini-httpd.postinst | 1 | ||||
-rw-r--r-- | package/mini_httpd/files/mini_httpd.init | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/package/mini_httpd/files/mini-httpd.postinst b/package/mini_httpd/files/mini-httpd.postinst index dfcafaa9e..e1fc0ccca 100644 --- a/package/mini_httpd/files/mini-httpd.postinst +++ b/package/mini_httpd/files/mini-httpd.postinst @@ -1,3 +1,4 @@ #!/bin/sh . $IPKG_INSTROOT/etc/functions.sh add_rcconf '"NO" to disable, "-C /etc/mini_httpd.conf" otherwise' mini_httpd_flags +add_rcconf mini_httpd mini_httpd NO diff --git a/package/mini_httpd/files/mini_httpd.init b/package/mini_httpd/files/mini_httpd.init index 5b7796e27..4737c4b35 100644 --- a/package/mini_httpd/files/mini_httpd.init +++ b/package/mini_httpd/files/mini_httpd.init @@ -7,7 +7,7 @@ case $1 in autostop) ;; autostart) - [[ $mini_httpd_flags = NO ]] && exit 0 + test x"${mini_httpd:-NO}" = x"NO" && exit 0 exec sh $0 start ;; start) |