aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/qoriq/base-files
diff options
context:
space:
mode:
authorThibaut VARÈNE <hacks@slashdirt.org>2022-06-28 16:40:05 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2022-06-29 00:09:53 +0300
commit5fdbae463c57fa48709d876abaadbbbd5938f84f (patch)
treea7b33b3ecc5a0d2f3c1415948eab9b78d9b715a9 /target/linux/qoriq/base-files
parent19231cf83835db563ee7431b502fe1695ef1f559 (diff)
downloadupstream-5fdbae463c57fa48709d876abaadbbbd5938f84f.tar.gz
upstream-5fdbae463c57fa48709d876abaadbbbd5938f84f.tar.bz2
upstream-5fdbae463c57fa48709d876abaadbbbd5938f84f.zip
qoriq: 02_network fix sweth globbing logic
This prevents invalid configuration of non-existent sweth devices. Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/qoriq/base-files')
-rw-r--r--target/linux/qoriq/base-files/etc/board.d/02_network2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/qoriq/base-files/etc/board.d/02_network b/target/linux/qoriq/base-files/etc/board.d/02_network
index 35b7ce9f32..355c8d37a4 100644
--- a/target/linux/qoriq/base-files/etc/board.d/02_network
+++ b/target/linux/qoriq/base-files/etc/board.d/02_network
@@ -21,7 +21,7 @@ watchguard,firebox-m300)
sweth_mac_offset=0x186d
- for sweth in /sys/class/net/sweth*; do
+ for sweth in $(find /sys/class/net/ -name 'sweth*' -print); do
device="$(basename "$sweth")"
mac="$(mtd_get_mac_text wg_cfg0 "$sweth_mac_offset")"
switchports="$switchports $device"