We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d7c87 commit c127744Copy full SHA for c127744
packages/client/monitor
@@ -2,7 +2,7 @@
2
3
UPTIME="$(cut -d. -f1 /proc/uptime)"
4
# get machine mac address
5
-NETDEV=$(ip route show default | awk '/default/ {print $5}')
+NETDEV=$(ip route show default | awk '/default/ {print $5}' | head -n 1)
6
test -n "$NETDEV" && MACADDR="$(tr -d : < "/sys/class/net/$NETDEV/address")"
7
test -z "$MACADDR" && MACADDR="00:00:00:00:00:00"
8
0 commit comments