slackware-current/source/a/ndctl/doinst.sh
Patrick J Volkerding 893f157269 Fri Oct 7 20:32:18 UTC 2022
a/iniparser-4.1-x86_64-1.txz:  Added.
  This is needed by ndctl.
a/ndctl-74-x86_64-1.txz:  Upgraded.
l/libical-3.0.15-x86_64-1.txz:  Upgraded.
xap/mozilla-thunderbird-102.3.2-x86_64-1.txz:  Upgraded.
  This is a bugfix release.
  For more information, see:
    https://www.mozilla.org/en-US/thunderbird/102.3.2/releasenotes/
2022-10-08 07:00:17 +02:00

16 lines
477 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/ndctl.conf.d/ndctl.conf.new
config etc/ndctl.conf.d/monitor.conf.new
config etc/daxctl.conf.d/daxctl.example.conf.new