mirror of
git://slackware.nl/current.git
synced 2025-01-15 15:41:54 +01:00
659d74cc8d
patches/packages/dhcpcd-9.5.2-x86_64-1_slack15.0.txz: Upgraded. This is a bugfix release, primarily to address the broken --dumplease option. Thanks to slackwhere. patches/packages/mariadb-10.5.27-x86_64-1_slack15.0.txz: Upgraded. This is a bugfix release. For more information, see: https://mariadb.com/kb/en/mariadb-10-5-27-release-notes/
15 lines
376 B
Bash
15 lines
376 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/dhcpcd.conf.new
|
|
|