slackware-current/source/a/dracut/doinst.sh
Patrick J Volkerding f2ee5ebc09 Tue Sep 24 18:42:58 UTC 2024
a/bash-5.2.037-x86_64-1.txz:  Upgraded.
a/dracut-103-x86_64-3.txz:  Rebuilt.
  Don't search for systemd services. Thanks to LuckyCyborg.
d/git-2.46.2-x86_64-1.txz:  Upgraded.
kde/krita-5.2.5-x86_64-1.txz:  Upgraded.
l/gtk4-4.16.2-x86_64-1.txz:  Upgraded.
l/harfbuzz-10.0.0-x86_64-1.txz:  Upgraded.
n/netatalk-3.2.10-x86_64-1.txz:  Upgraded.
xap/mpv-0.39.0-x86_64-1.txz:  Upgraded.
2024-09-24 21:36:52 +02:00

15 lines
447 B
Bash

#!/bin/sh
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/dracut.conf.d/elogind.conf.new
config etc/dracut.conf.d/omit_systemd_modules.conf.new