mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-07-14 23:23:14 +02:00
patch code
This commit is contained in:
@ -500,6 +500,7 @@ if [ "$action" = "status" ] || [ "$action" = "mount" ] || [ "$action" = "unmount
|
|||||||
installDevice=""
|
installDevice=""
|
||||||
possibleInstallDevices=$(lsblk -o NAME,TRAN -d | grep -E 'mmc|usb|sr' | cut -d' ' -f1)
|
possibleInstallDevices=$(lsblk -o NAME,TRAN -d | grep -E 'mmc|usb|sr' | cut -d' ' -f1)
|
||||||
for device in ${possibleInstallDevices}; do
|
for device in ${possibleInstallDevices}; do
|
||||||
|
echo "# check device ${device}"
|
||||||
if parted "/dev/${device}" print 2>/dev/null | grep "^ *[0-9]" | grep -q "boot\|esp\|lba"; then
|
if parted "/dev/${device}" print 2>/dev/null | grep "^ *[0-9]" | grep -q "boot\|esp\|lba"; then
|
||||||
installDevice="${device}"
|
installDevice="${device}"
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user