mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-02 10:59:27 +01:00
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:
parent
f5829523bd
commit
9b4f8dae48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user