Skip to content
Snippets Groups Projects
Commit 0d3d6f7f authored by Adrian Schmutzler's avatar Adrian Schmutzler Committed by Tim Niemeyer
Browse files

fff-nodewatcher: Use mac address instead of standard node name


Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: default avatarTim Niemeyer <tim@tn-x.org>
parent fd41c720
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,8 @@ crawl() { ...@@ -56,6 +56,8 @@ crawl() {
#Get system data from other locations #Get system data from other locations
err "$(date): Collecting basic system status data" err "$(date): Collecting basic system status data"
hostname="$(cat /proc/sys/kernel/hostname)" hostname="$(cat /proc/sys/kernel/hostname)"
mac=$(awk '{ mac=toupper($1); gsub(":", "", mac); print mac }' /sys/class/net/br-mesh/address 2>/dev/null)
[ "$hostname" = "LEDE" ] && hostname="$mac"
description="$(uci get system.@system[0].description)" description="$(uci get system.@system[0].description)"
if [ -n "$description" ]; then if [ -n "$description" ]; then
description="<description><![CDATA[$description]]></description>" description="<description><![CDATA[$description]]></description>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment