mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Linux Flash script update for TS100 (#1997)
Some checks failed
Docs / deploy-docs (push) Has been cancelled
CI / build (MHP30) (push) Has been cancelled
CI / build (Pinecil) (push) Has been cancelled
CI / build (Pinecilv2) (push) Has been cancelled
CI / build (S60) (push) Has been cancelled
CI / build (S60P) (push) Has been cancelled
CI / build (T55) (push) Has been cancelled
CI / build (TS100) (push) Has been cancelled
CI / build (TS101) (push) Has been cancelled
CI / build (TS80) (push) Has been cancelled
CI / build (TS80P) (push) Has been cancelled
CI / build_multi-lang (Pinecil) (push) Has been cancelled
CI / build_multi-lang (Pinecilv2) (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / check_c-cpp (push) Has been cancelled
CI / check_python (push) Has been cancelled
CI / check_shell (push) Has been cancelled
CI / check_readme (push) Has been cancelled
CI / upload_metadata (push) Has been cancelled
Some checks failed
Docs / deploy-docs (push) Has been cancelled
CI / build (MHP30) (push) Has been cancelled
CI / build (Pinecil) (push) Has been cancelled
CI / build (Pinecilv2) (push) Has been cancelled
CI / build (S60) (push) Has been cancelled
CI / build (S60P) (push) Has been cancelled
CI / build (T55) (push) Has been cancelled
CI / build (TS100) (push) Has been cancelled
CI / build (TS101) (push) Has been cancelled
CI / build (TS80) (push) Has been cancelled
CI / build (TS80P) (push) Has been cancelled
CI / build_multi-lang (Pinecil) (push) Has been cancelled
CI / build_multi-lang (Pinecilv2) (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / check_c-cpp (push) Has been cancelled
CI / check_python (push) Has been cancelled
CI / check_shell (push) Has been cancelled
CI / check_readme (push) Has been cancelled
CI / upload_metadata (push) Has been cancelled
* Using dd instead cp and unmount tmp folder immediately * add sudo to rmdir
This commit is contained in:
@@ -75,7 +75,7 @@ umount_ts100() {
|
|||||||
echo "Failed to unmount $DIR_TMP"
|
echo "Failed to unmount $DIR_TMP"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rmdir "$DIR_TMP"
|
sudo rmdir "$DIR_TMP"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_flash() {
|
check_flash() {
|
||||||
@@ -126,14 +126,13 @@ echo "Found TS100 config disk device on $DEVICE"
|
|||||||
|
|
||||||
mount_ts100
|
mount_ts100
|
||||||
echo "Mounted config disk drive, flashing..."
|
echo "Mounted config disk drive, flashing..."
|
||||||
cp -v "$1" "$HEX_FIRMWARE"
|
dd if="$1" of="$HEX_FIRMWARE" oflag=direct
|
||||||
sync
|
umount_ts100
|
||||||
|
|
||||||
echo "Waiting for TS100 to flash"
|
echo "Waiting for TS100 to flash"
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
echo "Remounting config disk drive"
|
echo "Remounting config disk drive"
|
||||||
umount_ts100
|
|
||||||
wait_for_ts100
|
wait_for_ts100
|
||||||
mount_ts100
|
mount_ts100
|
||||||
check_flash
|
check_flash
|
||||||
|
|||||||
Reference in New Issue
Block a user