mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
cloud_discovery: make use of the new TIP cloud discovery server
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
hname=$(cat /etc/board.json | jsonfilter -e '@.system.label_macaddr')
|
||||
[ -z "$hname" ] && hname=$(cat /sys/class/net/eth0/address)
|
||||
uci set system.@system[-1].mac=$hname
|
||||
hname=$(echo $hname | tr -d : | awk '{print tolower($0)}')
|
||||
uci set system.@system[-1].hostname=$hname
|
||||
uci set ucentral.config.serial=$hname
|
||||
|
||||
Reference in New Issue
Block a user