slackware-current/source/xfce/xfce4-screensaver/doinst.sh
Patrick J Volkerding 497dcc1ee7 Thu Mar 14 20:01:17 UTC 2024
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.
2024-03-14 21:30:41 +01:00

18 lines
482 B
Bash

# Handle the incoming configuration files:
config() {
for infile in $1; do
NEW="$infile"
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...
done
}
config etc/pam.d/xfce4-screensaver.new