Integrate Shorewall-init with NetworkManager on RedHat

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-05-18 12:49:09 -07:00
parent f9d187c288
commit 592c9bbdbc
2 changed files with 10 additions and 0 deletions

View File

@ -80,6 +80,9 @@ else
*ifdown*)
COMMAND=down
;;
*dispatch.d*)
COMMAND="$2"
;;
*)
exit 0
;;

View File

@ -250,6 +250,13 @@ if [ -z "$PREFIX" ]; then
ln -s /usr/share/shorewall-init/ifupdown /sbin/ifup-local
ln -s /usr/share/shorewall-init/ifupdown /sbin/ifdown-local
fi
if [ -d /etc/NetworkManager/dispatch.d ]; then
#
# RedHat doesn't integrate ifup/ifdown-local with NetworkManager
#
ln -s /usr/share/shorewall-init/ifupdown /etc/NetworkManager/dispatch.d/shorewall
fi
fi
if [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then