aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/flash_ts100_linux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/flash_ts100_linux.sh')
-rwxr-xr-xscripts/flash_ts100_linux.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/flash_ts100_linux.sh b/scripts/flash_ts100_linux.sh
index dbd65a77..d2139f21 100755
--- a/scripts/flash_ts100_linux.sh
+++ b/scripts/flash_ts100_linux.sh
@@ -75,7 +75,7 @@ umount_ts100() {
echo "Failed to unmount $DIR_TMP"
exit 1
fi
- rmdir "$DIR_TMP"
+ sudo rmdir "$DIR_TMP"
}
check_flash() {
@@ -126,14 +126,13 @@ echo "Found TS100 config disk device on $DEVICE"
mount_ts100
echo "Mounted config disk drive, flashing..."
-cp -v "$1" "$HEX_FIRMWARE"
-sync
+dd if="$1" of="$HEX_FIRMWARE" oflag=direct
+umount_ts100
echo "Waiting for TS100 to flash"
sleep 5
echo "Remounting config disk drive"
-umount_ts100
wait_for_ts100
mount_ts100
check_flash