diff --git a/Shorewall/install.sh b/Shorewall/install.sh index 710e06109..00a07ed22 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -479,11 +479,17 @@ if [ -z "$PREFIX" -a -n "$first_install" ]; then fi elif [ -x /sbin/chkconfig -o -x /usr/sbin/chkconfig ]; then if chkconfig --add $FIREWALL ; then - echo -e "\nFirewall will automatically start in run levels as follows:" + echo -e "\nFirewall will start automatically in run levels as follows:" chkconfig --list $FIREWALL else cant_autostart fi + elif [ -x /sbin/rc-update ]; then + if rc-update add shorewall default; then + echo -e "\nFirewall will start automatically at boot" + else + cant_autostart + fi else modify_rclocal fi