maverick: add the last 3 bytes of the serial to the Maverick ssid

Fixes: WIFI-7202
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-03-01 09:27:35 +01:00
parent e40631b8cd
commit 5d53d138b0

View File

@@ -16,12 +16,14 @@ wifi config
. /lib/functions.sh . /lib/functions.sh
SUFFIX=$(uci get system.@system[0].hostname | tail -c 7 | tr a-f A-F | tr -d '\n')
radio_enable() { radio_enable() {
uci set wireless.$1.disabled=0 uci set wireless.$1.disabled=0
} }
ssid_set() { ssid_set() {
uci set wireless.$1.ssid='Maverick' uci set wireless.$1.ssid=Maverick-${SUFFIX}
} }
delete_forwarding() { delete_forwarding() {