mirror of
https://github.com/femtofox/femtofox.git
synced 2026-12-03 05:10:19 -05:00
luckfox-config.txt is no longer case sensitive (SSID is the same as ssid). The values remain case sensitive.
This commit is contained in:
parent
04272d9ceb
commit
a75589c4f1
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue