1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-14 08:01:11 +01:00
slackware-current/testing/source/grub/doinst.sh
Patrick J Volkerding 142322a437 Fri Dec 29 21:02:02 UTC 2023
a/sysvinit-scripts-15.1-noarch-10.txz:  Rebuilt.
  rc.M: Fix the name of the LDAP name service daemon (rc.nss-pam-ldap).
  Thanks to 0XBF.
d/subversion-1.14.3-x86_64-1.txz:  Upgraded.
l/libvisual-0.4.2-x86_64-1.txz:  Upgraded.
l/libvisual-plugins-0.4.2-x86_64-1.txz:  Upgraded.
l/netpbm-11.05.01-x86_64-1.txz:  Upgraded.
xfce/thunar-4.18.9-x86_64-1.txz:  Upgraded.
testing/packages/grub-2.12-x86_64-1.txz:  Added.
2023-12-29 22:35:49 +01:00

18 lines
469 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...
}
# Process config files in etc/grub.d/:
for file in etc/grub.d/*.new ; do
config $file
done
config etc/default/grub.new