summaryrefslogtreecommitdiff
path: root/network/nss-mdns/doinst.sh
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-11 20:01:40 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:40 +0200
commit65ce762f7f0e7f5514391e30c22734c862ca2375 (patch)
treea974f6e378c7b51ca231cf3c5bf68dd9a1e8cb00 /network/nss-mdns/doinst.sh
parent092fa42c62795f762d20d530d266ae41a5a91a5e (diff)
downloadslackbuilds-65ce762f7f0e7f5514391e30c22734c862ca2375.tar.gz
network/nss-mdns: Added to 12.0 repository
Diffstat (limited to 'network/nss-mdns/doinst.sh')
-rw-r--r--network/nss-mdns/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/network/nss-mdns/doinst.sh b/network/nss-mdns/doinst.sh
new file mode 100644
index 0000000000..66a1051516
--- /dev/null
+++ b/network/nss-mdns/doinst.sh
@@ -0,0 +1,16 @@
+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/mdns.allow.new
+config etc/nsswitch.conf-mdns.new
+