aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorMyNameIsKitsune <[email protected]>2024-11-16 12:39:10 +0200
committerGitHub <[email protected]>2024-11-16 10:39:10 +0000
commitd0bcf40e5c03583c7be6b5e800964de126e0010e (patch)
tree565317c17a136a4fbc8ed56b860c4269d82a3ee0 /scripts
parentd4a57eab4a461b642dc9de97f31fe8ef8f9955c0 (diff)
downloadIronOS-d0bcf40e5c03583c7be6b5e800964de126e0010e.tar.gz
IronOS-d0bcf40e5c03583c7be6b5e800964de126e0010e.zip
Linux Flash script update for TS100 (#1997)
* Using dd instead cp and unmount tmp folder immediately * add sudo to rmdir
Diffstat (limited to 'scripts')
-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