summaryrefslogtreecommitdiffstats
path: root/libraries/barry/doinst.sh
diff options
context:
space:
mode:
author Vincent Batts2010-05-11 20:00:41 +0200
committer Robby Workman2010-05-11 20:00:41 +0200
commit5367554b70bf3129e1dd4ccd5f303d13951086d5 (patch)
tree1ede83fbc7f2b404d631c83d3193cdc4b805579e /libraries/barry/doinst.sh
parent4f53ee36b270bb36ce790f0017ab31c4ac713a68 (diff)
downloadslackbuilds-5367554b70bf3129e1dd4ccd5f303d13951086d5.tar.gz
libraries/barry: Added to 12.0 repository
Diffstat (limited to 'libraries/barry/doinst.sh')
-rw-r--r--libraries/barry/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/libraries/barry/doinst.sh b/libraries/barry/doinst.sh
new file mode 100644
index 0000000000..f1bc12fcd3
--- /dev/null
+++ b/libraries/barry/doinst.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+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/modprobe.d/barry.new
+