"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "uninstall.sh" between
aif-2.1.0.tar.gz and aif-2.1.1.tar.gz

About: Arno’s iptables firewall is a stateful firewall script for both single and multi-homed machines with DSL/ADSL support.

uninstall.sh  (aif-2.1.0):uninstall.sh  (aif-2.1.1)
#!/bin/bash #!/bin/bash
MY_VERSION="1.0d" MY_VERSION="1.0f"
# ------------------------------------------------------------------------------ ------------ # ------------------------------------------------------------------------------ ------------
# -= Arno's Iptables Firewall(AIF) =- # -= Arno's Iptables Firewall(AIF) =-
# Single- & multi-homed firewall script with DSL/ADSL support # Single- & multi-homed firewall script with DSL/ADSL support
# #
# ~ In memory of my dear father ~ # ~ In memory of my dear father ~
# #
# (C) Copyright 2001-2019 by Arno van Amersfoort # (C) Copyright 2001-2020 by Arno van Amersfoort
# Homepage : https://rocky.eld.leidenuniv.nl/ # Homepage : https://rocky.eld.leidenuniv.nl/
# Email : a r n o v a AT r o c k y DOT e l d DOT l e i d e n u n i v DOT n l # Email : a r n o v a AT r o c k y DOT e l d DOT l e i d e n u n i v DOT n l
# (note: you must remove all spaces and substitute the @ and the . # (note: you must remove all spaces and substitute the @ and the .
# at the proper locations!) # at the proper locations!)
# ------------------------------------------------------------------------------ ------------ # ------------------------------------------------------------------------------ ------------
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License # modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation. # version 2 as published by the Free Software Foundation.
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
skipping to change at line 89 skipping to change at line 89
fi fi
} }
# main line: # main line:
AIF_VERSION="$(grep "MY_VERSION=" ./bin/arno-iptables-firewall |sed -e "s/^MY_VE RSION=\"//" -e "s/\"$//")" AIF_VERSION="$(grep "MY_VERSION=" ./bin/arno-iptables-firewall |sed -e "s/^MY_VE RSION=\"//" -e "s/\"$//")"
printf "\033[40m\033[1;32mArno's Iptables Firewall(AIF) v$AIF_VERSION\033[0m\n" printf "\033[40m\033[1;32mArno's Iptables Firewall(AIF) v$AIF_VERSION\033[0m\n"
printf "Uninstall Script v$MY_VERSION\n" printf "Uninstall Script v$MY_VERSION\n"
echo "-------------------------------------------------------------------------- -----" echo "-------------------------------------------------------------------------- -----"
sanity_check; sanity_check
if ! get_user_yn "Continue uninstall" "n"; then if ! get_user_yn "Continue uninstall" "n"; then
echo "*Uninstall aborted!" echo "*Uninstall aborted!"
exit 1 exit 1
fi fi
rm -fv /usr/local/sbin/arno-iptables-firewall rm -fv /usr/local/sbin/arno-iptables-firewall
rm -fv /usr/local/sbin/arno-fwfilter rm -fv /usr/local/sbin/arno-fwfilter
rm -fv /usr/local/sbin/traffic-accounting-show
rm -fv /usr/local/bin/arno-fwfilter rm -fv /usr/local/bin/arno-fwfilter
rm -rfv /usr/local/share/arno-iptables-firewall rm -rfv /usr/local/share/arno-iptables-firewall
rm -fv /usr/local/share/man/man8/arno-iptables-firewall.8.gz rm -fv /usr/local/share/man/man8/arno-iptables-firewall.8.gz
rm -fv /usr/local/share/man/man8/arno-fwfilter.1.gz rm -fv /usr/local/share/man/man8/arno-fwfilter.1.gz
rm -fv /usr/local/share/doc/arno-iptables-firewall/README rm -fv /usr/local/share/doc/arno-iptables-firewall/README
# Check for insserv. Used for dependency based booting rm -fv /etc/logrotate.d/arno-iptables-firewall
# Disable systemd
if check_command systemctl; then
systemctl disable arno-iptables-firewall
fi
# Disable via update-rc.d/chkconfig
if check_command update-rc.d; then if check_command update-rc.d; then
update-rc.d -f arno-iptables-firewall remove update-rc.d -f arno-iptables-firewall remove
elif check_command chkconfig; then elif check_command chkconfig; then
chkconfig --del arno-iptables-firewall chkconfig --del arno-iptables-firewall
fi fi
rm -fv /etc/init.d/arno-iptables-firewall
# Remove init.d script # Remove init.d script
rm -fv /etc/init.d/arno-iptables-firewall
rm -fv /etc/rc.d/rc*.d/*arno-iptables-firewall rm -fv /etc/rc.d/rc*.d/*arno-iptables-firewall
rm -fv /etc/rc*.d/*arno-iptables-firewall rm -fv /etc/rc*.d/*arno-iptables-firewall
# Remove systemd files # Remove systemd files
rm -fv /usr/lib/systemd/system/arno-iptables-firewall.service rm -fv /usr/lib/systemd/system/arno-iptables-firewall.service
rm -fv /lib/systemd/system/arno-iptables-firewall.service rm -fv /lib/systemd/system/arno-iptables-firewall.service
rm -fv /etc/systemd/arno-iptables-firewall.service rm -fv /etc/systemd/arno-iptables-firewall.service
if get_user_yn "Also remove ALL configuration files from /etc/arno-iptables-fire wall/" "n"; then if get_user_yn "Also remove ALL configuration files from /etc/arno-iptables-fire wall/" "n"; then
rm -rfv /etc/arno-iptables-firewall rm -rfv /etc/arno-iptables-firewall
 End of changes. 7 change blocks. 
6 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)