Install the ifupdown script in if-down.d rather than if-post-down.d on Debian

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-06-01 11:56:48 -07:00
parent 9c4a01bcdd
commit f266d9a4dc

View File

@ -312,7 +312,7 @@ fi
if [ $HOST = debian ]; then
if [ -n "${DESTDIR}" ]; then
mkdir -p ${DESTDIR}/etc/network/if-up.d/
mkdir -p ${DESTDIR}/etc/network/if-post-down.d/
mkdir -p ${DESTDIR}/etc/network/if-down.d/
fi
if [ ! -f ${DESTDIR}/etc/default/shorewall-init ]; then
@ -359,8 +359,9 @@ fi
case $HOST in
debian)
rm -f ${DESTDIR}/etc/network/if-post-down.d/shorewall
install_file ifupdown ${DESTDIR}/etc/network/if-up.d/shorewall 0544
install_file ifupdown ${DESTDIR}/etc/network/if-post-down.d/shorewall 0544
install_file ifupdown ${DESTDIR}/etc/network/if-down.d/shorewall 0544
;;
suse)
if [ -z "$RPM" ]; then