diff options
-rw-r--r-- | system/fwupd/doinst.sh | 7 | ||||
-rw-r--r-- | system/fwupd/fwupd.SlackBuild | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/system/fwupd/doinst.sh b/system/fwupd/doinst.sh index 544d2273ce..835a554895 100644 --- a/system/fwupd/doinst.sh +++ b/system/fwupd/doinst.sh @@ -22,4 +22,9 @@ config etc/fwupd/remotes.d/vendor-directory.conf.new config etc/fwupd/remotes.d/fwupd-tests.conf.new config etc/fwupd/daemon.conf.new config etc/fwupd/redfish.conf.new -config etc/fwupd/uefi.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 diff --git a/system/fwupd/fwupd.SlackBuild b/system/fwupd/fwupd.SlackBuild index 42be43104f..8493264dc1 100644 --- a/system/fwupd/fwupd.SlackBuild +++ b/system/fwupd/fwupd.SlackBuild @@ -111,7 +111,10 @@ mv $PKG/etc/fwupd/remotes.d/vendor-directory.conf $PKG/etc/fwupd/remotes.d/vendo mv $PKG/etc/fwupd/remotes.d/fwupd-tests.conf $PKG/etc/fwupd/remotes.d/fwupd-tests.conf.new mv $PKG/etc/fwupd/daemon.conf $PKG/etc/fwupd/daemon.conf.new mv $PKG/etc/fwupd/redfish.conf $PKG/etc/fwupd/redfish.conf.new -mv $PKG/etc/fwupd/uefi.conf $PKG/etc/fwupd/uefi.conf.new + +if [ -e $PKG/etc/fwupd/uefi.conf ] ; then + mv $PKG/etc/fwupd/uefi.conf $PKG/etc/fwupd/uefi.conf.new +fi rm -rf $PKG/usr/share/installed-tests @@ -128,5 +131,10 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +if [ -e $PKG/etc/fwupd/uefi.conf.new ] ; then + echo "" >> $PKG/install/doinst.sh + echo "config etc/fwupd/uefi.conf.new" >> $PKG/install/doinst.sh +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |