summaryrefslogtreecommitdiff
path: root/system/fwupd/fwupd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/fwupd/fwupd.SlackBuild')
-rw-r--r--system/fwupd/fwupd.SlackBuild10
1 files changed, 9 insertions, 1 deletions
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}