summaryrefslogtreecommitdiff
path: root/uninstall
blob: 121a753bbb4720db878f281b9fe79ae187d0ada9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# backup... tjust in case...
echo "Backup of firewall.local -> $PWD/data/backups/firewall.$(date +"%Y_%m_%d_%I_%M_%p_%s").local"
mkdir -p $PWD/data/backups
cp /etc/sysconfig/firewall.local $PWD/data/backups/firewall.$(date +"%Y_%m_%d_%I_%M_%p_%s").local

# Another backup!
echo "Backup of firewall.local -> firewall.local.old"
cp -PL /etc/sysconfig/firewall.local /etc/sysconfig/firewall.local.old
rm /etc/sysconfig/firewall.local

# Removing rules symbolic link
echo "Removing IPFire Custom Firewall Rules"
if [[ -L "/etc/sysconfig/rules.d" ]] ; then
    rm /etc/sysconfig/rules.d
fi

echo "Removing IPFire Custom Firewall Rules Looper"
echo "Restore of $PWD/data/originals/firewall.original /etc/sysconfig/firewall.local"
cp $PWD/data/originals/firewall.original /etc/sysconfig/firewall.local