mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Fixes for Debian
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cdcb42ce9c
commit
84909de8b9
@ -25,7 +25,7 @@
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: shorewall-init
|
||||
# Required-Start:
|
||||
# Required-Start: $local_fs
|
||||
# Required-Stop: $network
|
||||
# Default-Start: S
|
||||
# Default-Stop: 0 6
|
||||
@ -34,6 +34,8 @@
|
||||
# bringing up the network
|
||||
### END INIT INFO
|
||||
|
||||
export VERBOSITY=0
|
||||
|
||||
if [ "$(id -u)" != "0" ]
|
||||
then
|
||||
echo "You must be root to start, stop or restart \"Shorewall \"."
|
||||
|
@ -224,7 +224,7 @@ fi
|
||||
if [ -n "$DEBIAN" ]; then
|
||||
if [ -n "${PREFIX}" ]; then
|
||||
mkdir -p ${PREFIX}/etc/network/if-up.d/
|
||||
mkdir -p ${PREFIX}/etc/network/if-down.d/
|
||||
mkdir -p ${PREFIX}/etc/network/if-post-down.d/
|
||||
fi
|
||||
|
||||
if [ ! -f ${PREFIX}/etc/default/shorewall-init ]; then
|
||||
@ -266,7 +266,7 @@ fi
|
||||
|
||||
if [ -n "$DEBIAN" ]; then
|
||||
ln -sf /sbin/shorewall-ifupdown ${PREFIX}/etc/network/if-up.d/shorewall
|
||||
ln -sf /sbin/shorewall-ifupdown ${PREFIX}/etc/network/if-down.d/shorewall
|
||||
ln -sf /sbin/shorewall-ifupdown ${PREFIX}/etc/network/if-post-down.d/shorewall
|
||||
elif [ -n "$SUSE" ]; then
|
||||
ln -sf /sbin/shorewall-ifupdown ${PREFIX}/etc/sysconfig/network/if-up.d/shorewall
|
||||
ln -sf /sbin/shorewall-ifupdown ${PREFIX}/etc/sysconfig/network/if-down.d/shorewall
|
||||
@ -282,7 +282,7 @@ fi
|
||||
if [ -z "$PREFIX" ]; then
|
||||
if [ -n "$first_install" ]; then
|
||||
if [ -n "$DEBIAN" ]; then
|
||||
ln -sf ../init.d/shorewall-init /etc/rcS.d/S09shorewall-init
|
||||
ln -sf ../init.d/shorewall-init /etc/rcS.d/S38shorewall-init
|
||||
echo "Shorewall Init will start automatically at boot"
|
||||
else
|
||||
if [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then
|
||||
|
@ -6,6 +6,8 @@ Changes in Shorewall 4.4.10
|
||||
|
||||
3) Implement Shorewall-init.
|
||||
|
||||
4) Add SAFESTOP option to /etc/default/shorewall*
|
||||
|
||||
Changes in Shorewall 4.4.9
|
||||
|
||||
1) Auto-detection of bridges.
|
||||
|
Loading…
Reference in New Issue
Block a user