diff options
author | Alan_Hicks <alan@lizella.net> | 2010-05-13 00:31:51 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:31:51 +0200 |
commit | 8f2e9cce7148f19a7be4446bf04026c3b30133e9 (patch) | |
tree | 1b514c39e11d56ca831a05697c94e720daf24750 /libraries/libsmbios/doinst.sh | |
parent | 110f8d52f9cdd695cac840314385eb19fe496b2c (diff) | |
download | slackbuilds-8f2e9cce7148f19a7be4446bf04026c3b30133e9.tar.gz |
libraries/libsmbios: Updated for version 2.2.19
Diffstat (limited to 'libraries/libsmbios/doinst.sh')
-rw-r--r-- | libraries/libsmbios/doinst.sh | 15 |
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 + |