diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2017-08-07 23:28:39 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-08-12 06:57:32 +0700 |
commit | e192b0c5fc3c8bfcfe082551519062b9b33a010d (patch) | |
tree | a0c8c08882bc7f888def62780ac1e51e4fdeec3b /system/fwupdate/doinst.sh | |
parent | 5c6618414f54debe5b0523795f5061baea8f1faf (diff) | |
download | slackbuilds-e192b0c5fc3c8bfcfe082551519062b9b33a010d.tar.gz |
system/fwupdate: Added (Tools to apply firmware updates).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/fwupdate/doinst.sh')
-rw-r--r-- | system/fwupdate/doinst.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/fwupdate/doinst.sh b/system/fwupdate/doinst.sh new file mode 100644 index 0000000000..e7c66a8cfc --- /dev/null +++ b/system/fwupdate/doinst.sh @@ -0,0 +1,11 @@ +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 usr/libexec/fwupdate/cleanup.new |