slackware-current/source/a/libblockdev/doinst.sh
Patrick J Volkerding 66d9bc3f90 Thu Apr 11 19:05:36 UTC 2024
a/elogind-255.4-x86_64-1.txz:  Upgraded.
a/libblockdev-3.1.1_1-x86_64-1.txz:  Upgraded.
a/libbytesize-2.10-x86_64-1.txz:  Upgraded.
a/libgudev-238-x86_64-1.txz:  Upgraded.
a/udisks-1.0.5-x86_64-11.txz:  Removed.
a/udisks2-2.10.1-x86_64-1.txz:  Upgraded.
a/upower-1.90.4-x86_64-1.txz:  Upgraded.
l/python-docutils-0.21.1-x86_64-1.txz:  Upgraded.
l/python-idna-3.7-x86_64-1.txz:  Upgraded.
n/php-8.3.5-x86_64-1.txz:  Upgraded.
  This update fixes bugs and security issues.
  For more information, see:
    https://www.php.net/ChangeLog-8.php#8.3.6
  (* Security fix *)
x/ibus-m17n-1.4.29-x86_64-1.txz:  Upgraded.
x/mesa-24.0.5-x86_64-1.txz:  Upgraded.
2024-04-11 21:30:49 +02:00

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