Create symbolic link on RedHat

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-05-24 07:46:01 -07:00
parent f7580d52f7
commit 273b2252e3

View File

@ -59,6 +59,8 @@ if [ $1 -eq 1 ]; then
ln -s shorewall-ifupdown /sbin/ifup-local
ln -s shorewall-ifupdown /sbin/ifdown-local
fi
ln -sf /sbin/shorewall-ifupdown /etc/NetworkManager/dispatcher.d/01-shorewall
fi
fi
@ -74,6 +76,8 @@ if [ $1 -eq 0 ]; then
[ "$(readlink -m -q /sbin/ifup-local)" = /sbin/shorewall-ifupdown ] && rm -f /sbin/ifup-local
[ "$(readlink -m -q /sbin/ifdown-local)" = /sbin/shorewall-ifupdown ] && rm -f /sbin/ifdown-local
rm -f /etc/NetworkManager/dispatcher.d/01-shorewall
rm -f /etc/sysconfig/network/if-up.d/shorewall
rm -f /etc/sysconfig/network/if-down.d/shorewall
fi