slackware-current/source/x/sddm/doinst.sh
Patrick J Volkerding fa5f20fb26 Thu Jan 11 20:27:14 UTC 2024
ap/mpg123-1.32.4-x86_64-1.txz:  Upgraded.
l/nodejs-20.11.0-x86_64-1.txz:  Upgraded.
l/pipewire-1.0.1-x86_64-1.txz:  Upgraded.
x/mesa-23.3.3-x86_64-1.txz:  Upgraded.
x/sddm-0.20.0-x86_64-4.txz:  Rebuilt.
2024-01-11 22:01:24 +01:00

19 lines
498 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/sddm.conf.new
config etc/default/sddm.new
config etc/pam.d/sddm.new
config etc/pam.d/sddm-autologin.new
config etc/pam.d/sddm-greeter.new