Skip to content

Commit c127744

Browse files
committed
fix multi network
1 parent 35d7c87 commit c127744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/monitor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
UPTIME="$(cut -d. -f1 /proc/uptime)"
44
# get machine mac address
5-
NETDEV=$(ip route show default | awk '/default/ {print $5}')
5+
NETDEV=$(ip route show default | awk '/default/ {print $5}' | head -n 1)
66
test -n "$NETDEV" && MACADDR="$(tr -d : < "/sys/class/net/$NETDEV/address")"
77
test -z "$MACADDR" && MACADDR="00:00:00:00:00:00"
88

0 commit comments

Comments
 (0)