slackware-current/source/a/mkinitrd/doinst.sh
Patrick J Volkerding bca17f28cc Thu Jul 25 20:22:54 UTC 2024
Enjoy your shiny new vmlinuz-6.9.11-generic!
Thanks again to LuckyCyborg for teaching me about the path of least resistance.
a/grub-2.12-x86_64-14.txz:  Rebuilt.
  Don't mention 09_slackware_linux in the /etc/default/grub comments.
a/kernel-generic-6.9.11-x86_64-1.txz:  Upgraded.
a/kernel-huge-6.9.11-x86_64-1.txz:  Upgraded.
a/kernel-modules-6.9.11-x86_64-1.txz:  Upgraded.
a/mkinitrd-1.4.11-x86_64-35.txz:  Rebuilt.
d/kernel-headers-6.9.11-x86-1.txz:  Upgraded.
d/rust-1.80.0-x86_64-1.txz:  Upgraded.
k/kernel-source-6.9.11-noarch-1.txz:  Upgraded.
l/xapian-core-1.4.26-x86_64-1.txz:  Upgraded.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2024-07-25 23:16:46 +02:00

13 lines
373 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/default/geninitrd.new