mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 08:48:08 +00:00
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>
This commit is contained in:
parent
19231cf838
commit
5fdbae463c
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user