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:
Thibaut VARÈNE 2022-06-28 16:40:05 +02:00 committed by Stijn Tintel
parent 19231cf838
commit 5fdbae463c
1 changed files with 1 additions and 1 deletions

View File

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