diff --git a/Shorewall-init/uninstall.sh b/Shorewall-init/uninstall.sh index 783be899d..a4a86d999 100755 --- a/Shorewall-init/uninstall.sh +++ b/Shorewall-init/uninstall.sh @@ -65,7 +65,9 @@ echo "Uninstalling Shorewall Init $VERSION" INITSCRIPT=/etc/init.d/shorewall-init if [ -n "$INITSCRIPT" ]; then - if [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then + if [ -x /usr/sbin/updaterc.d ]; then + updaterc.d shorewall-init remove + elif [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then insserv -r $INITSCRIPT elif [ -x /sbin/chkconfig -o -x /usr/sbin/chkconfig ]; then chkconfig --del $(basename $INITSCRIPT) diff --git a/Shorewall-lite/uninstall.sh b/Shorewall-lite/uninstall.sh index 22be3aba8..67523bfaf 100755 --- a/Shorewall-lite/uninstall.sh +++ b/Shorewall-lite/uninstall.sh @@ -85,7 +85,9 @@ else fi if [ -n "$FIREWALL" ]; then - if [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then + if [ -x /usr/sbin/updaterc.d ]; then + updaterc.d shorewall-lite remove + elif [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then insserv -r $FIREWALL elif [ -x /sbin/chkconfig -o -x /usr/sbin/chkconfig ]; then chkconfig --del $(basename $FIREWALL) @@ -108,6 +110,6 @@ rm -rf /usr/share/shorewall-lite rm -rf /usr/share/shorewall-lite-*.bkout rm -f /etc/logrotate.d/shorewall-lite -echo "Shorewall Uninstalled" +echo "Shorewall Lite Uninstalled" diff --git a/Shorewall/uninstall.sh b/Shorewall/uninstall.sh index 0c97fa899..b98a3b58d 100755 --- a/Shorewall/uninstall.sh +++ b/Shorewall/uninstall.sh @@ -85,7 +85,9 @@ else fi if [ -n "$FIREWALL" ]; then - if [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then + if [ -x /usr/sbin/updaterc.d ]; then + updaterc.d shorewall remove + elif [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then insserv -r $FIREWALL elif [ -x /sbin/chkconfig -o -x /usr/sbin/chkconfig ]; then chkconfig --del $(basename $FIREWALL) diff --git a/Shorewall6-lite/uninstall.sh b/Shorewall6-lite/uninstall.sh index 86d99089d..108735818 100755 --- a/Shorewall6-lite/uninstall.sh +++ b/Shorewall6-lite/uninstall.sh @@ -73,7 +73,9 @@ else fi if [ -n "$FIREWALL" ]; then - if [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then + if [ -x /usr/sbin/updaterc.d ]; then + updaterc.d shorewall6-lite remove + elif [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then insserv -r $FIREWALL elif [ -x /sbin/chkconfig -o -x /usr/sbin/chkconfig ]; then chkconfig --del $(basename $FIREWALL) diff --git a/Shorewall6/uninstall.sh b/Shorewall6/uninstall.sh index bbe260d5b..4e6f2dfd1 100755 --- a/Shorewall6/uninstall.sh +++ b/Shorewall6/uninstall.sh @@ -85,7 +85,9 @@ else fi if [ -n "$FIREWALL" ]; then - if [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then + if [ -x /usr/sbin/updaterc.d ]; then + updaterc.d shorewall6 remove + elif [ -x /sbin/insserv -o -x /usr/sbin/insserv ]; then insserv -r $FIREWALL elif [ -x /sbin/chkconfig -o -x /usr/sbin/chkconfig ]; then chkconfig --del $(basename $FIREWALL)