mirror of
git://slackware.nl/current.git
synced 2024-12-27 09:59:16 +01:00
893f157269
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/
16 lines
477 B
Bash
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
|