From 9b4f8dae48d034fec558b7fc446627cb49a58aed Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 8 Aug 2002 17:48:04 +0000 Subject: [PATCH] Add autostart config for Gentoo Linux git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@187 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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