mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Proper device lookup (#4612)
* Proper device lookup * Remove unnecessary part * Add closing double quote
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user