Fix SSID/Passphrase hash to be correctly computed across supported devices.
This commit is contained in:
parent
952694d8df
commit
85c3a82a61
1 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,7 @@ fi
|
|||
|
||||
if [ "${WIFI_TYPE}" = "1" ]
|
||||
then
|
||||
#SSID="${SSID}_np"
|
||||
GENERATED=($(md5sum /etc/os-release))
|
||||
GENERATED=($(awk '! /^HW_|BUILD_DATE/ {print}' /etc/os-release | md5sum))
|
||||
SSID="${GENERATED[0]:0:10}"
|
||||
PSK="${GENERATED[0]: -10}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue