mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 15:46:55 +02:00
Only enable startup on initial installation
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@251 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
7ff49f05b6
commit
b1461a478e
@ -45,16 +45,18 @@ if [ $1 -eq 1 ]; then
|
|||||||
echo \
|
echo \
|
||||||
"########################################################################
|
"########################################################################
|
||||||
# REMOVE THIS FILE AFTER YOU HAVE CONFIGURED SHOREWALL #
|
# REMOVE THIS FILE AFTER YOU HAVE CONFIGURED SHOREWALL #
|
||||||
########################################################################" > /etc/shorewall/startup_disabled
|
########################################################################" \
|
||||||
fi
|
> /etc/shorewall/startup_disabled
|
||||||
|
|
||||||
if [ -x /sbin/insserv ]; then
|
if [ -x /sbin/insserv ]; then
|
||||||
/sbin/insserv /etc/rc.d/shorewall
|
/sbin/insserv /etc/rc.d/shorewall
|
||||||
elif [ -x /sbin/chkconfig ]; then
|
elif [ -x /sbin/chkconfig ]; then
|
||||||
/sbin/chkconfig --add shorewall;
|
/sbin/chkconfig --add shorewall;
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
if [ -x /sbin/insserv ]; then
|
if [ -x /sbin/insserv ]; then
|
||||||
/sbin/insserv -r /etc/init.d/shorewall
|
/sbin/insserv -r /etc/init.d/shorewall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user