[openwrt/openwrt] qoriq: 02_network fix sweth globbing logic
LEDE Commits
lede-commits at lists.infradead.org
Tue Jun 28 15:41:22 PDT 2022
stintel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5fdbae463c57fa48709d876abaadbbbd5938f84f
commit 5fdbae463c57fa48709d876abaadbbbd5938f84f
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Tue Jun 28 16:40:05 2022 +0200
qoriq: 02_network fix sweth globbing logic
This prevents invalid configuration of non-existent sweth devices.
Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
target/linux/qoriq/base-files/etc/board.d/02_network | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"
More information about the lede-commits
mailing list