forked from extern/shorewall_code
Integrate Shorewall-init with NetworkManager on RedHat
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f9d187c288
commit
592c9bbdbc
@ -80,6 +80,9 @@ else
|
||||
*ifdown*)
|
||||
COMMAND=down
|
||||
;;
|
||||
*dispatch.d*)
|
||||
COMMAND="$2"
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user