diff options
author | Mauricio Martinez <eigenfilter@gmail.com> | 2020-05-22 20:31:52 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-05-23 09:32:01 +0700 |
commit | 89fce5ed064428b2c428d5183ef98559e2a11079 (patch) | |
tree | a222dd9de9a06149cfc58112869efaefc907d3bc /development/OpenHantek6022/doinst.sh | |
parent | 26e56372a7d6d83ef6555f114f5f46dbda5ae4b9 (diff) |
development/OpenHantek6022: Added (Hantek6022 oscilloscope software)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/OpenHantek6022/doinst.sh')
-rw-r--r-- | development/OpenHantek6022/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/development/OpenHantek6022/doinst.sh b/development/OpenHantek6022/doinst.sh new file mode 100644 index 0000000000000..2a8d2defb01bd --- /dev/null +++ b/development/OpenHantek6022/doinst.sh @@ -0,0 +1,14 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/udev/rules.d/60-hantek.rules.new |