summaryrefslogtreecommitdiffstats
path: root/misc/heimdall/doinst.sh
diff options
context:
space:
mode:
author Diniz Bortolotto2017-01-20 15:16:26 +0100
committer Willy Sudiarto Raharjo2017-01-21 00:24:15 +0100
commitb1ca4d7ba934adb36a8f0455d00aa40e430d3e7b (patch)
treea670aab3790bc17ad8a7e40f8d5d0574bcbf9f28 /misc/heimdall/doinst.sh
parent1c8aede57bb35485a27bbac20391c2cd6a5d858b (diff)
downloadslackbuilds-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.sh11
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