From 5d53d138b09bee01e9f9c3e689a39a455b8b424e Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 1 Mar 2022 09:27:35 +0100 Subject: [PATCH] maverick: add the last 3 bytes of the serial to the Maverick ssid Fixes: WIFI-7202 Signed-off-by: John Crispin --- feeds/tip/maverick/files/usr/libexec/ucentral/maverick.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feeds/tip/maverick/files/usr/libexec/ucentral/maverick.sh b/feeds/tip/maverick/files/usr/libexec/ucentral/maverick.sh index 51fbae176..bffb6bf1a 100755 --- a/feeds/tip/maverick/files/usr/libexec/ucentral/maverick.sh +++ b/feeds/tip/maverick/files/usr/libexec/ucentral/maverick.sh @@ -16,12 +16,14 @@ wifi config . /lib/functions.sh +SUFFIX=$(uci get system.@system[0].hostname | tail -c 7 | tr a-f A-F | tr -d '\n') + radio_enable() { uci set wireless.$1.disabled=0 } ssid_set() { - uci set wireless.$1.ssid='Maverick' + uci set wireless.$1.ssid=Maverick-${SUFFIX} } delete_forwarding() {