From a75589c4f12dacc72505bd7386cab227c93d46e1 Mon Sep 17 00:00:00 2001 From: nagumii Date: Fri, 22 Nov 2024 14:12:17 +0200 Subject: [PATCH] luckfox-config.txt is no longer case sensitive (SSID is the same as ssid). The values remain case sensitive. --- scripts/usbconfig.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/usbconfig.sh b/scripts/usbconfig.sh index f1a3952..0a12095 100644 --- a/scripts/usbconfig.sh +++ b/scripts/usbconfig.sh @@ -80,13 +80,13 @@ if [ -f "$MOUNT_POINT/femtofox-config.txt" ]; then FOUNDCONFIG="false" # Read the fields from the USB config file if they exist - if grep -q 'ssid=' "$USB_CONFIG"; then + if grep -qi 'ssid=' "$USB_CONFIG"; then SSID=$(grep 'ssid=' "$USB_CONFIG" | sed 's/ssid=//' | tr -d '"') fi - if grep -q 'psk=' "$USB_CONFIG"; then + if grep -qi 'psk=' "$USB_CONFIG"; then PSK=$(grep 'psk=' "$USB_CONFIG" | sed 's/psk=//' | tr -d '"') fi - if grep -q 'country=' "$USB_CONFIG"; then + if grep -qi 'country=' "$USB_CONFIG"; then COUNTRY=$(grep 'country=' "$USB_CONFIG" | sed 's/country=//' | tr -d '"') fi