diff --git a/Shorewall-init/uninstall.sh b/Shorewall-init/uninstall.sh index 00dacf917..ce12bf692 100755 --- a/Shorewall-init/uninstall.sh +++ b/Shorewall-init/uninstall.sh @@ -143,14 +143,14 @@ FIREWALL=${CONFDIR}/init.d/$PRODUCT if [ -f "$FIREWALL" ]; then if [ $configure -eq 1 ]; then - if [ $HOST = openwrt ]; then + if [ $HOST = openwrt ] ; then if /etc/init.d/$PRODUCT enabled; then /etc/init.d/$PRODUCT disable fi - elif mywhich updaterc.d ; then - updaterc.d ${PRODUCT} remove elif mywhich insserv ; then insserv -r $FIREWALL + elif mywhich update-rc.d ; then + update-rc.d ${PRODUCT} remove elif mywhich chkconfig ; then chkconfig --del $(basename $FIREWALL) fi diff --git a/Shorewall-lite/uninstall.sh b/Shorewall-lite/uninstall.sh index 71e5a3d49..2c4536905 100755 --- a/Shorewall-lite/uninstall.sh +++ b/Shorewall-lite/uninstall.sh @@ -167,10 +167,10 @@ fi if [ -f "$FIREWALL" ]; then if [ $configure -eq 1 ]; then - if mywhich updaterc.d ; then - updaterc.d ${PRODUCT} remove - elif mywhich insserv ; then + if mywhich insserv ; then insserv -r $FIREWALL + elif mywhich update-rc.d ; then + update-rc.d ${PRODUCT} remove elif mywhich chkconfig ; then chkconfig --del $(basename $FIREWALL) fi diff --git a/Shorewall/uninstall.sh b/Shorewall/uninstall.sh index 6a9f02057..1b81cd3a9 100755 --- a/Shorewall/uninstall.sh +++ b/Shorewall/uninstall.sh @@ -159,10 +159,10 @@ fi if [ -f "$FIREWALL" ]; then if [ $configure -eq 1 ]; then - if mywhich updaterc.d ; then - updaterc.d ${PRODUCT} remove - elif mywhich insserv ; then + if mywhich insserv ; then insserv -r $FIREWALL + elif mywhich update-rc.d ; then + update-rc.d ${PRODUCT} remove elif mywhich chkconfig ; then chkconfig --del $(basename $FIREWALL) fi