small update on CARD_READER variable

This commit is contained in:
Dave
2018-10-06 22:04:39 +01:00
parent 8681034d63
commit 62667d11f8

View File

@@ -56,7 +56,7 @@ CARD_READER=($(ls /dev/* | grep "$CARD_DEV" | cut -d"/" -f3))
until [ ! -z "${CARD_READER[0]}" ] until [ ! -z "${CARD_READER[0]}" ]
do do
sleep 1 sleep 1
CARD_READER=($(ls /dev/sd* | grep "$CARD_DEV" | cut -d"/" -f3)) CARD_READER=($(ls /dev/* | grep "$CARD_DEV" | cut -d"/" -f3))
done done
# If the card reader is detected, mount it and obtain its UUID # If the card reader is detected, mount it and obtain its UUID