Add autostart config for Gentoo Linux

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@187 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-08-08 17:48:04 +00:00
parent f5829523bd
commit 9b4f8dae48

View File

@ -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