mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 23:53:30 +01:00
Create symbolic link on RedHat
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f7580d52f7
commit
273b2252e3
@ -59,6 +59,8 @@ if [ $1 -eq 1 ]; then
|
|||||||
ln -s shorewall-ifupdown /sbin/ifup-local
|
ln -s shorewall-ifupdown /sbin/ifup-local
|
||||||
ln -s shorewall-ifupdown /sbin/ifdown-local
|
ln -s shorewall-ifupdown /sbin/ifdown-local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ln -sf /sbin/shorewall-ifupdown /etc/NetworkManager/dispatcher.d/01-shorewall
|
||||||
fi
|
fi
|
||||||
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/ifup-local)" = /sbin/shorewall-ifupdown ] && rm -f /sbin/ifup-local
|
||||||
[ "$(readlink -m -q /sbin/ifdown-local)" = /sbin/shorewall-ifupdown ] && rm -f /sbin/ifdown-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-up.d/shorewall
|
||||||
rm -f /etc/sysconfig/network/if-down.d/shorewall
|
rm -f /etc/sysconfig/network/if-down.d/shorewall
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user