From 8f2e9cce7148f19a7be4446bf04026c3b30133e9 Mon Sep 17 00:00:00 2001 From: Alan_Hicks Date: Thu, 13 May 2010 00:31:51 +0200 Subject: libraries/libsmbios: Updated for version 2.2.19 --- libraries/libsmbios/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libraries/libsmbios/doinst.sh (limited to 'libraries/libsmbios/doinst.sh') 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 + -- cgit v1.2.3