summaryrefslogtreecommitdiffstats
path: root/source/n/iproute2/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/iproute2/doinst.sh')
-rw-r--r--source/n/iproute2/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/n/iproute2/doinst.sh b/source/n/iproute2/doinst.sh
new file mode 100644
index 000000000..01b82a28e
--- /dev/null
+++ b/source/n/iproute2/doinst.sh
@@ -0,0 +1,18 @@
+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/iproute2/ematch_map.new
+config etc/iproute2/rt_dsfield.new
+config etc/iproute2/rt_protos.new
+config etc/iproute2/rt_realms.new
+config etc/iproute2/rt_scopes.new
+config etc/iproute2/rt_tables.new
+