add case insensitive to ventoy device detection

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-12-20 22:38:20 +01:00
parent 202e5789f3
commit fff0ad5225

View File

@ -64,7 +64,7 @@ then
busybox echo '[PikaOS Booster Live Hook]: Attempting Ventoy mapping hook.' busybox echo '[PikaOS Booster Live Hook]: Attempting Ventoy mapping hook.'
fi fi
# Get Ventoy ISO Partition ID # 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 # Keep retrying 10 times incase usb_storage has yet to pick up
while [ -z "$VENTOY_DEVICE" ] while [ -z "$VENTOY_DEVICE" ]
do do
@ -72,7 +72,7 @@ then
then then
busybox echo '[PikaOS Booster Live Hook]: Ventoy Device could not found retrying...' busybox echo '[PikaOS Booster Live Hook]: Ventoy Device could not found retrying...'
fi 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 ((c++)) && ((c==10)) && break
busybox sleep 5 busybox sleep 5
done done