#!/bin/bash 
#
# Run the openHantek Digital Storage Oscilloscope tool
#
# 2012-12-01 JvO, new script
#

clear

# define variables
dsoPath="/opt/local/openhantek/bin/"
dso="openHantek.app"

#fwPath="/opt/local/Hantekdso/bin/"
fwPath=${dsoPath}
fw="${fwPath}fxload-osx -t fx2 -I ${fwPath}DSO2090_firmware.hex -s ${fwPath}DSO2090_loader.hex -D 04b4:2090"

${fw} # load DSO firmware

sleep 5

open ${dsoPath}${dso}

exit 0