aboutsummaryrefslogtreecommitdiff
path: root/system/fwupd/doinst.sh
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2017-08-09 23:34:06 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:57:53 +0700
commit862c01d447785f492fa48aa04975ef3a06579356 (patch)
tree1613f8eaebf136877a92dc604a7eda2e2d4c275d /system/fwupd/doinst.sh
parentd99f90700c65fdee52d54c0ea97e70ff0e00c47d (diff)
system/fwupd: Added (update firmware).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/fwupd/doinst.sh')
-rw-r--r--system/fwupd/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/fwupd/doinst.sh b/system/fwupd/doinst.sh
new file mode 100644
index 000000000000..7fb85f61a30e
--- /dev/null
+++ b/system/fwupd/doinst.sh
@@ -0,0 +1,18 @@
+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.conf.new
+config etc/fwupd/remotes.d/fwupd.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.conf.new
+config etc/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service.new
+config etc/pki/fwupd/GPG-KEY-Hughski-Limited.new
+config etc/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service.new