add case insensitive to ventoy device detection
This commit is contained in:
parent
202e5789f3
commit
fff0ad5225
@ -64,7 +64,7 @@ then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Attempting Ventoy mapping hook.'
|
||||
fi
|
||||
# Get Ventoy ISO Partition ID
|
||||
VENTOY_DEVICE="$(busybox blkid | busybox grep "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')"
|
||||
VENTOY_DEVICE="$(busybox blkid | busybox grep -i "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')"
|
||||
# Keep retrying 10 times incase usb_storage has yet to pick up
|
||||
while [ -z "$VENTOY_DEVICE" ]
|
||||
do
|
||||
@ -72,7 +72,7 @@ then
|
||||
then
|
||||
busybox echo '[PikaOS Booster Live Hook]: Ventoy Device could not found retrying...'
|
||||
fi
|
||||
VENTOY_DEVICE="$(busybox blkid | busybox grep "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')"
|
||||
VENTOY_DEVICE="$(busybox blkid | busybox grep -i "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')"
|
||||
((c++)) && ((c==10)) && break
|
||||
busybox sleep 5
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user