mirror of
git://slackware.nl/current.git
synced 2024-11-16 07:48:02 +01:00
497dcc1ee7
a/cryptsetup-2.7.1-x86_64-1.txz: Upgraded. a/elogind-252.23-x86_64-2.txz: Rebuilt. Install /etc/pam.d/elogind-user as .new. Thanks to Markus Wiesner. a/kmod-32-x86_64-1.txz: Upgraded. a/tcsh-6.24.11-x86_64-1.txz: Upgraded. ap/a2ps-4.15.6-x86_64-1.txz: Upgraded. d/vala-0.56.16-x86_64-1.txz: Upgraded. l/avahi-20240306_709e60f-x86_64-1.txz: Upgraded. Don't reload dbus from the installer. x/mesa-24.0.3-x86_64-1.txz: Upgraded. xap/xlockmore-5.76-x86_64-1.txz: Upgraded. xfce/xfce4-screensaver-4.18.3-x86_64-2.txz: Rebuilt. Install /etc/pam.d/xfce4-screensaver as .new. Thanks to Markus Wiesner.
37 lines
960 B
Bash
37 lines
960 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...
|
|
}
|
|
|
|
preserve_perms() {
|
|
NEW="$1"
|
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
|
if [ -e $OLD ]; then
|
|
cp -a $OLD ${NEW}.incoming
|
|
cat $NEW > ${NEW}.incoming
|
|
mv ${NEW}.incoming $NEW
|
|
fi
|
|
config $NEW
|
|
}
|
|
|
|
preserve_perms etc/rc.d/rc.avahidaemon.new
|
|
preserve_perms etc/rc.d/rc.avahidnsconfd.new
|
|
preserve_perms etc/avahi/avahi-daemon.conf.new
|
|
|
|
if [ -x /usr/bin/update-desktop-database ]; then
|
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
|
fi
|
|
|
|
# Reload messagebus service:
|
|
if [ -x /etc/rc.d/rc.messagebus ]; then
|
|
sh /etc/rc.d/rc.messagebus reload 1> /dev/null 2> /dev/null
|
|
fi
|
|
|