From fe5d89b243a96c5ea90fdc02c83e559582cb3d38 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 1 Jun 2012 11:56:48 -0700 Subject: [PATCH] Install the ifupdown script in if-down.d rather than if-post-down.d on Debian Signed-off-by: Tom Eastep --- Shorewall-init/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh index 4a026c468..9fae4244f 100755 --- a/Shorewall-init/install.sh +++ b/Shorewall-init/install.sh @@ -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