Skip to content

Commit

Permalink
Implement flash
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Apr 29, 2024
1 parent 9437599 commit 7359623
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/usb-installer/overlay/opt/custom-tty
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ do
if [[ -n "$device" ]]
then
echo "installing umbrelOS on: $device"
device_path="/dev/$(echo $device | awk '{print $1}')"
xz --decompress --stdout /umbrelos-amd64.img.xz | dd of=$device_path bs=4M status=progress
sync
echo
echo "umbrelOS has been installed!"
printf "Press any key to shutdown, remember to remove the USB drive before turning the device back on."
read -n 1 -s
poweroff
break
else
echo "Invalid choice, please try again."
Expand Down

0 comments on commit 7359623

Please sign in to comment.