mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
e8ee1c899f
a/hdparm-9.61-x86_64-1.txz: Upgraded. a/kernel-firmware-20210426_fa0efef-noarch-1.txz: Upgraded. ap/cups-2.3.3-x86_64-6.txz: Rebuilt. Removed /lib/modprobe.d/cups-blacklist-usblp.conf. Thanks to vovim. ap/vim-8.2.2814-x86_64-1.txz: Upgraded. d/strace-5.12-x86_64-1.txz: Upgraded. kde/kstars-3.5.3-x86_64-1.txz: Upgraded. kde/sddm-0.19.0-x86_64-7.txz: Rebuilt. List X11 sessions before Wayland sessions. Thanks to Heinz Wiesinger. l/imagemagick-7.0.11_9-x86_64-1.txz: Upgraded. xap/vim-gvim-8.2.2814-x86_64-1.txz: Upgraded. testing/packages/linux-5.12.x/kernel-generic-5.12.0-x86_64-2.txz: Rebuilt. testing/packages/linux-5.12.x/kernel-headers-5.12.0-x86-2.txz: Rebuilt. testing/packages/linux-5.12.x/kernel-huge-5.12.0-x86_64-2.txz: Rebuilt. testing/packages/linux-5.12.x/kernel-modules-5.12.0-x86_64-2.txz: Rebuilt. testing/packages/linux-5.12.x/kernel-source-5.12.0-noarch-2.txz: Rebuilt. Restore dm-crypt as built-in. Thanks to ctrlaltca. DM_CRYPT m -> y TCG_TPM m -> y TRUSTED_KEYS m -> y
31 lines
817 B
Bash
31 lines
817 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...
|
|
}
|
|
for file in etc/cups/*.new ; do
|
|
config $file
|
|
done
|
|
|
|
if [ -r etc/pam.d/cups.new ]; then
|
|
config etc/pam.d/cups.new
|
|
fi
|
|
|
|
# Leave any new rc.cups with the same permissions as the old one:
|
|
# This is a kludge, but it's because there's no --reference option
|
|
# on busybox's 'chmod':
|
|
if [ -e etc/rc.d/rc.cups ]; then
|
|
if [ -x etc/rc.d/rc.cups ]; then
|
|
chmod 755 etc/rc.d/rc.cups.new
|
|
else
|
|
chmod 644 etc/rc.d/rc.cups.new
|
|
fi
|
|
fi
|
|
# Then config() it:
|
|
config etc/rc.d/rc.cups.new
|