diff options
author | Diniz Bortolotto <diniz.bortolotto@gmail.com> | 2017-01-20 21:16:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-21 06:24:15 +0700 |
commit | b1ca4d7ba934adb36a8f0455d00aa40e430d3e7b (patch) | |
tree | a670aab3790bc17ad8a7e40f8d5d0574bcbf9f28 /misc/heimdall/doinst.sh | |
parent | 1c8aede57bb35485a27bbac20391c2cd6a5d858b (diff) | |
download | slackbuilds-b1ca4d7ba934adb36a8f0455d00aa40e430d3e7b.tar.gz |
misc/heimdall: Added (Flash ROM tool).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/heimdall/doinst.sh')
-rw-r--r-- | misc/heimdall/doinst.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/heimdall/doinst.sh b/misc/heimdall/doinst.sh new file mode 100644 index 0000000000..beb53402f1 --- /dev/null +++ b/misc/heimdall/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 etc/udev/rules.d/60-heimdall.rules.new |