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