mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 13:20:56 +02:00
patch code
This commit is contained in:
parent
1066440963
commit
43c2c5d9ef
@ -500,6 +500,7 @@ if [ "$action" = "status" ] || [ "$action" = "mount" ] || [ "$action" = "unmount
|
||||
installDevice=""
|
||||
possibleInstallDevices=$(lsblk -o NAME,TRAN -d | grep -E 'mmc|usb|sr' | cut -d' ' -f1)
|
||||
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
|
||||
installDevice="${device}"
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user