aboutsummaryrefslogtreecommitdiff
path: root/network/openresolv/doinst.sh
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-03 23:11:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-05 08:52:27 +0700
commitdb27f461b2dc808121c3296e96a080beea807270 (patch)
treecc3316d3e42d2c61c9768344b891684812e99e0f /network/openresolv/doinst.sh
parent328a94a82c1fbb2a429d92010d0f2a169da11aa6 (diff)
network/openresolv: Updated for version 3.9.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/openresolv/doinst.sh')
-rw-r--r--network/openresolv/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/openresolv/doinst.sh b/network/openresolv/doinst.sh
new file mode 100644
index 0000000000000..8859585e9681f
--- /dev/null
+++ b/network/openresolv/doinst.sh
@@ -0,0 +1,14 @@
+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/resolvconf.conf