summaryrefslogtreecommitdiff
path: root/network/shorewall6/doinst.sh
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2010-05-12 23:32:47 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:32:47 +0200
commit22d849dfda1774922358a05907b317ad5b7e7bc4 (patch)
tree2fc83bd9ebc3fb21e856b6a7f853152444e87c20 /network/shorewall6/doinst.sh
parent6b21104f80157a54f33449092451d9ae8e6d7b22 (diff)
downloadslackbuilds-22d849dfda1774922358a05907b317ad5b7e7bc4.tar.gz
network/shorewall6: Added to 12.2 repository
Diffstat (limited to 'network/shorewall6/doinst.sh')
-rw-r--r--network/shorewall6/doinst.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/network/shorewall6/doinst.sh b/network/shorewall6/doinst.sh
new file mode 100644
index 0000000000..5beaa1d282
--- /dev/null
+++ b/network/shorewall6/doinst.sh
@@ -0,0 +1,42 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/rc.d/rc.shorewall6.new
+
+config etc/shorewall6/accounting.new
+config etc/shorewall6/actions.new
+config etc/shorewall6/blacklist.new
+config etc/shorewall6/hosts.new
+config etc/shorewall6/init.new
+config etc/shorewall6/interfaces.new
+config etc/shorewall6/maclist.new
+config etc/shorewall6/notrack.new
+config etc/shorewall6/params.new
+config etc/shorewall6/policy.new
+config etc/shorewall6/providers.new
+config etc/shorewall6/restored.new
+config etc/shorewall6/route_rules.new
+config etc/shorewall6/routestopped.new
+config etc/shorewall6/rules.new
+config etc/shorewall6/shorewall6.conf.new
+config etc/shorewall6/start.new
+config etc/shorewall6/started.new
+config etc/shorewall6/stop.new
+config etc/shorewall6/stopped.new
+config etc/shorewall6/tcclasses.new
+config etc/shorewall6/tcdevices.new
+config etc/shorewall6/tcrules.new
+config etc/shorewall6/tos.new
+config etc/shorewall6/tunnels.new
+config etc/shorewall6/zones.new
+