summaryrefslogtreecommitdiff
path: root/network/airoscript/doinst.sh
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja [at] gmail [dot] com>2010-05-12 23:31:55 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:31:55 +0200
commit68535f1807fe898ae73501f449dc11af05fa029c (patch)
tree1542b8cdb683c4e351153bf7f9e946fa832b5938 /network/airoscript/doinst.sh
parent17de40e589dee444cb54dbba87aa06dc03e6d5c7 (diff)
downloadslackbuilds-68535f1807fe898ae73501f449dc11af05fa029c.tar.gz
network/airoscript: Added to 12.2 repository
Diffstat (limited to 'network/airoscript/doinst.sh')
-rw-r--r--network/airoscript/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/airoscript/doinst.sh b/network/airoscript/doinst.sh
new file mode 100644
index 0000000000..60cb62a2cc
--- /dev/null
+++ b/network/airoscript/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/airoscript.conf.new