summaryrefslogtreecommitdiff
path: root/misc/biosdisk/doinst.sh
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2010-05-11 22:54:28 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 22:54:28 +0200
commit37274113c3478150aab06ce3db914f6477f4fda7 (patch)
treeae57732fd32c7a1663d70ac715d51ecfb1e30ec3 /misc/biosdisk/doinst.sh
parenta630d7216dbec08a4e30b1a981594428b4a90048 (diff)
downloadslackbuilds-37274113c3478150aab06ce3db914f6477f4fda7.tar.gz
misc/biosdisk: Added to 12.1 repository
Diffstat (limited to 'misc/biosdisk/doinst.sh')
-rw-r--r--misc/biosdisk/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/biosdisk/doinst.sh b/misc/biosdisk/doinst.sh
new file mode 100644
index 0000000000..c193537931
--- /dev/null
+++ b/misc/biosdisk/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/biosdisk.conf.new