summaryrefslogtreecommitdiff
path: root/uninstall
diff options
context:
space:
mode:
Diffstat (limited to 'uninstall')
-rwxr-xr-xuninstall21
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...
4echo "Backup of firewall.local -> $PWD/data/backups/firewall.$(date +"%Y_%m_%d_%I_%M_%p_%s").local"
5mkdir -p $PWD/data/backups
6cp /etc/sysconfig/firewall.local $PWD/data/backups/firewall.$(date +"%Y_%m_%d_%I_%M_%p_%s").local
7
8# Another backup!
9echo "Backup of firewall.local -> firewall.local.old"
10cp -PL /etc/sysconfig/firewall.local /etc/sysconfig/firewall.local.old
11rm /etc/sysconfig/firewall.local
12
13# Removing rules symbolic link
14echo "Removing IPFire Custom Firewall Rules"
15if [[ -L "/etc/sysconfig/rules.d" ]] ; then
16 rm /etc/sysconfig/rules.d
17fi
18
19echo "Removing IPFire Custom Firewall Rules Looper"
20echo "Restore of $PWD/data/originals/firewall.original /etc/sysconfig/firewall.local"
21cp $PWD/data/originals/firewall.original /etc/sysconfig/firewall.local