Skip to content

Commit

Permalink
Proper device lookup (#4612)
Browse files Browse the repository at this point in the history
* Proper device lookup

* Remove unnecessary part

* Add closing double quote
  • Loading branch information
igorpecovnik committed Dec 28, 2022
1 parent 1e097c1 commit 24d2510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bsp/common/etc/default/armbian-motd.dpkg-dist
Expand Up @@ -7,7 +7,7 @@
MOTD_DISABLE=""
ONE_WIRE=""
HIDE_IP_PATTERN="^dummy0|^lo"
PRIMARY_INTERFACE="$(ls -1 /sys/class/net/ | grep -E "en|eth|wl" -m 1)"
PRIMARY_INTERFACE="$(ip route | grep '^default' | sed "s/.*dev //" | cut -d" " -f1)"
PRIMARY_DIRECTION="rx"
STORAGE=/dev/sda1

Expand Down

0 comments on commit 24d2510

Please sign in to comment.