1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-14 08:01:11 +01:00
slackware-current/patches/source/dhcpcd/doinst.sh
Patrick J Volkerding 659d74cc8d Mon Nov 4 19:08:43 UTC 2024
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/
2024-11-05 13:30:43 +01:00

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