cloud_discovery: make use of the new TIP cloud discovery server

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-04-10 08:30:15 +02:00
parent 2b0c600fb3
commit c83ac67492
2 changed files with 6 additions and 4 deletions

View File

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