summaryrefslogtreecommitdiff
path: root/package/shorewall-common/files/shorewall.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/shorewall-common/files/shorewall.init')
-rw-r--r--package/shorewall-common/files/shorewall.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/shorewall-common/files/shorewall.init b/package/shorewall-common/files/shorewall.init
index b143fbda4..5c5a4660a 100644
--- a/package/shorewall-common/files/shorewall.init
+++ b/package/shorewall-common/files/shorewall.init
@@ -6,7 +6,8 @@
case $1 in
autostop) ;;
autostart)
- test x"$shorewall" != x"YES" && exit 0
+ test x"${shorewall:-NO}" != x"YES" && exit 0
+ test x"$shorewall" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)