summaryrefslogtreecommitdiff
path: root/uninstall
diff options
context:
space:
mode:
authorroot2022-05-30 15:59:54 +0200
committerroot2022-05-30 15:59:54 +0200
commit6891a04373daa365c35828ce71e047f5f14486e4 (patch)
tree20e71951c13407f5b7c49f3c9336fd876bbea666 /uninstall
downloadIPFireCustomRules-6891a04373daa365c35828ce71e047f5f14486e4.tar.gz
IPFireCustomRules-6891a04373daa365c35828ce71e047f5f14486e4.tar.bz2
IPFireCustomRules-6891a04373daa365c35828ce71e047f5f14486e4.zip
Beta2: DNS & NTP Redirect To Exernal Working!
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