diff options
Diffstat (limited to 'uninstall')
-rwxr-xr-x | uninstall | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/uninstall b/uninstall new file mode 100755 index 0000000..121a753 --- /dev/null +++ b/uninstall | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # backup... tjust in case... | ||
4 | echo "Backup of firewall.local -> $PWD/data/backups/firewall.$(date +"%Y_%m_%d_%I_%M_%p_%s").local" | ||
5 | mkdir -p $PWD/data/backups | ||
6 | cp /etc/sysconfig/firewall.local $PWD/data/backups/firewall.$(date +"%Y_%m_%d_%I_%M_%p_%s").local | ||
7 | |||
8 | # Another backup! | ||
9 | echo "Backup of firewall.local -> firewall.local.old" | ||
10 | cp -PL /etc/sysconfig/firewall.local /etc/sysconfig/firewall.local.old | ||
11 | rm /etc/sysconfig/firewall.local | ||
12 | |||
13 | # Removing rules symbolic link | ||
14 | echo "Removing IPFire Custom Firewall Rules" | ||
15 | if [[ -L "/etc/sysconfig/rules.d" ]] ; then | ||
16 | rm /etc/sysconfig/rules.d | ||
17 | fi | ||
18 | |||
19 | echo "Removing IPFire Custom Firewall Rules Looper" | ||
20 | echo "Restore of $PWD/data/originals/firewall.original /etc/sysconfig/firewall.local" | ||
21 | cp $PWD/data/originals/firewall.original /etc/sysconfig/firewall.local | ||