From 98545b4d2387093bce0381b93e4c291e2c696d99 Mon Sep 17 00:00:00 2001 From: kokoye2007 Date: Mon, 22 May 2023 03:55:46 +1000 Subject: [PATCH] #18 Xiaomi QR format update --- wifi-qr | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wifi-qr b/wifi-qr index fabfe8e..d8e1449 100755 --- a/wifi-qr +++ b/wifi-qr @@ -258,19 +258,15 @@ call_wifi_scan() { WIFIQRDATA="${wifiqrdata}" # Extract the SSID - # QSSID=$(echo "$WIFIQRDATA" | sed -n 's/.*S:\(.*\);T.*/\1/p' | sed 's/\\\([\\;,:"\]\)/\1/g' ) QSSID=$(echo "$WIFIQRDATA" | sed -n 's/.*S:\([^;]*\)\(;[PHT]\).*$/\1/p' | sed 's/\\\([\\;,:"\]\)/\1/g' ) # Extract the security type - # QTYPE=$(echo "$WIFIQRDATA" | sed -n 's/.*T:\(.*\);P.*/\1/p') QTYPE=$(echo "$WIFIQRDATA" | sed -n 's/.*T:\([^;]*\)\(;[PHS]\).*$/\1/p' | sed 's/\\\([\\;,:"\]\)/\1/g' ) # Extract the password if [[ $WIFIQRDATA == *';H:'* ]]; then - # QKEES=$(echo "$WIFIQRDATA" | sed -n 's/.*;P:\(.*\);H:.*/\1/p' | sed 's/\\:/:/g' | sed 's/\\\([\\;,:"\]\)/\1/g' ) QKEES=$(echo "$WIFIQRDATA" | sed -n 's/.*P:\([^;]*\)\(;[TSH]\).*$/\1/p' | sed 's/\\\([\\;,:"\]\)/\1/g' ) else - # QKEES=$(echo "$WIFIQRDATA" | sed -n 's/.*;P:\(.*\);;.*/\1/p' | sed 's/\\:/:/g' | sed 's/\\\([\\;,:"\]\)/\1/g' ) QKEES=$(echo "$WIFIQRDATA" | sed -n 's/.*P:\([^;]*\)\(;[TS]\).*$/\1/p' | sed 's/\\\([\\;,:"\]\)/\1/g' ) fi