Proper device lookup (#4612)

* Proper device lookup

* Remove unnecessary part

* Add closing double quote
This commit is contained in:
Igor Pečovnik 2022-12-28 14:39:47 +01:00 committed by GitHub
parent 1e097c1b43
commit 24d2510c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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