diff options
author | root | 2022-05-30 15:59:54 +0200 |
---|---|---|
committer | root | 2022-05-30 15:59:54 +0200 |
commit | 6891a04373daa365c35828ce71e047f5f14486e4 (patch) | |
tree | 20e71951c13407f5b7c49f3c9336fd876bbea666 /uninstall | |
download | IPFireCustomRules-6891a04373daa365c35828ce71e047f5f14486e4.tar.gz IPFireCustomRules-6891a04373daa365c35828ce71e047f5f14486e4.tar.bz2 IPFireCustomRules-6891a04373daa365c35828ce71e047f5f14486e4.zip |
Beta2: DNS & NTP Redirect To Exernal Working!
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 | ||