summaryrefslogtreecommitdiffstats
path: root/libraries/libsmbios/doinst.sh
diff options
context:
space:
mode:
author Alan_Hicks2010-05-13 00:31:51 +0200
committer Robby Workman2010-05-13 00:31:51 +0200
commit8f2e9cce7148f19a7be4446bf04026c3b30133e9 (patch)
tree1b514c39e11d56ca831a05697c94e720daf24750 /libraries/libsmbios/doinst.sh
parent110f8d52f9cdd695cac840314385eb19fe496b2c (diff)
downloadslackbuilds-8f2e9cce7148f19a7be4446bf04026c3b30133e9.tar.gz
libraries/libsmbios: Updated for version 2.2.19
Diffstat (limited to 'libraries/libsmbios/doinst.sh')
-rw-r--r--libraries/libsmbios/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/libsmbios/doinst.sh b/libraries/libsmbios/doinst.sh
new file mode 100644
index 0000000000..81ca56b4e6
--- /dev/null
+++ b/libraries/libsmbios/doinst.sh
@@ -0,0 +1,15 @@
+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/libsmbios/logging.conf.new
+