slackbuilds_ponce/system/fwupd/doinst.sh
Andrew Clemons 640731f851
system/fwupd: Updated for version 1.7.10.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2022-10-15 10:47:40 +07:00

27 lines
842 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
config etc/fwupd/daemon.conf.new
config etc/fwupd/msr.conf.new
config etc/fwupd/redfish.conf.new
config etc/fwupd/remotes.d/dell-esrt.conf.new
config etc/fwupd/remotes.d/fwupd-tests.conf.new
config etc/fwupd/remotes.d/lvfs-testing.conf.new
config etc/fwupd/remotes.d/lvfs.conf.new
config etc/fwupd/remotes.d/vendor-directory.conf.new
config etc/fwupd/remotes.d/vendor.conf.new
config etc/fwupd/thunderbolt.conf.new
config etc/fwupd/uefi_capsule.conf.new
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi