slackware-current/source/a/libblockdev/doinst.sh
Patrick J Volkerding 037917abe7 Wed Oct 28 20:19:37 UTC 2020
a/libblockdev-2.24-x86_64-1.txz:  Added.
  This is required by the new version of udisks2.
a/libbytesize-2.4-x86_64-1.txz:  Added.
  This is required by the new version of udisks2.
a/ndctl-70.1-x86_64-1.txz:  Added.
  This is required by libblockdev, which in turn is required by the new
  version of udisks2.
a/udisks2-2.9.1-x86_64-1.txz:  Upgraded.
  Thanks to Robby Workman for this update and the deps for it.
a/volume_key-0.3.12-x86_64-1.txz:  Added.
  This is required by the new version of udisks2.
ap/qpdf-10.0.2-x86_64-1.txz:  Upgraded.
n/openvpn-2.5.0-x86_64-1.txz:  Upgraded.
n/php-7.4.12-x86_64-1.txz:  Upgraded.
2020-10-29 08:59:45 +01:00

15 lines
447 B
Bash

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/libblockdev/conf.d/00-default.cfg.new
config etc/libblockdev/conf.d/10-lvm-dbus.cfg.new