Fix SSID/Passphrase hash to be correctly computed across supported devices.

This commit is contained in:
fewtarius 2023-08-25 02:33:42 +00:00
parent 952694d8df
commit 85c3a82a61
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -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