diff --git a/Shorewall-lite/uninstall.sh b/Shorewall-lite/uninstall.sh index b512a5c2c..3759413e3 100755 --- a/Shorewall-lite/uninstall.sh +++ b/Shorewall-lite/uninstall.sh @@ -188,11 +188,15 @@ fi rm -f ${SBINDIR}/shorewall-lite +rm -rf ${CONFDIR}/shorewall-lite rm -rf ${VARDIR}/shorewall-lite rm -rf ${SHAREDIR}/shorewall-lite rm -rf ${LIBEXEC}/shorewall-lite rm -f ${CONFDIR}/logrotate.d/shorewall-lite +rm -f ${MANDIR}/man5/shorewall-lite* +rm -f ${MANDIR}/man8/shorewall-lite* + echo "Shorewall Lite Uninstalled" diff --git a/Shorewall/uninstall.sh b/Shorewall/uninstall.sh index b862a12f3..ace6a12ff 100755 --- a/Shorewall/uninstall.sh +++ b/Shorewall/uninstall.sh @@ -162,18 +162,24 @@ fi rm -f ${SBINDIR}/shorewall -if [ -f "$INITSCRIPT" ]; then +if [ -L ${SHAREDIR}/shorewall6/init ]; then + FIREWALL=$(readlink -m -q ${SHAREDIR}/shorewall6/init) +elif [ -n "$INITFILE" ]; then + FIREWALL=${INITDIR}/${INITFILE} +fi + +if [ -f "$FIREWALL" ]; then if [ $configure -eq 1 ]; then if mywhich updaterc.d ; then updaterc.d ${PRODUCT} remove elif mywhich insserv ; then - insserv -r $INITSCRIPT + insserv -r $FIREWALL elif mywhich chkconfig ; then - chkconfig --del $(basename $INITSCRIPT) + chkconfig --del $(basename $FIREWALL) fi fi - remove_file $INITSCRIPT + remove_file $FIREWALL fi if [ -n "$SYSTEMD" ]; then diff --git a/Shorewall6-lite/uninstall.sh b/Shorewall6-lite/uninstall.sh index ae77aa3f6..cdff32790 100755 --- a/Shorewall6-lite/uninstall.sh +++ b/Shorewall6-lite/uninstall.sh @@ -152,12 +152,12 @@ echo "Uninstalling Shorewall Lite $VERSION" [ -n "$SANDBOX" ] && configure=0 if [ $configure -eq 1 ]; then - if qt ip6tables -L shorewall -n && [ ! -f ${SBINDIR)/shorewall6 ]; then + if qt ip6tables -L shorewall -n && [ ! -f ${SBINDIR}/shorewall6 ]; then ${SBINDIR}/shorewall6-lite clear fi fi -if [ -l ${SHAREDIR}/shorewall6-lite/init ]; then +if [ -f ${SHAREDIR}/shorewall6-lite/init ]; then FIREWALL=$(readlink -m -q ${SHAREDIR}/shorewall6-lite/init) elif [ -n "$INITFILE" ]; then FIREWALL=${INITDIR}/${INITFILE} @@ -192,6 +192,9 @@ rm -rf ${LIBEXEC}/shorewall6-lite rm -f ${CONFDIR}/logrotate.d/shorewall6-lite [ -n "$SYSTEMD" ] && rm -f ${SYSTEMD}/shorewall6-lite.service +rm -f ${MANDIR}/man5/shorewall6-lite* +rm -f ${MANDIR}/man8/shorewall6-lite* + echo "Shorewall6 Lite Uninstalled"