openwrt/package/base-files/files
Olliver Schinagl 3da70c6469 base-files: Do not break on non-eth ports
When using OpenWRT with DSA and 'lan' ports, we could get an empty
`next_eth`. This is of course not desirable, as this causes `sh: out of
range` errors when trying to determine which one would be greater.

It turns out, that we don't even need this check at all because, when
looking for all existin eth*s on a system, and take the highest index
and then iterate a set of devices and rename to eth${highest_index+n},
it is guaranteed that there will be no conflict.

Fixes: b688bf83f9 ("base-files: rename ethernet devs on known boards")
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2023-05-09 22:54:38 +02:00
..
bin base-files: ipcalc.sh: fix awk regex syntax 2023-02-07 21:05:58 +01:00
etc base-files: sysfixtime: Fix time on the fake RTC 2023-02-19 20:04:59 +08:00
lib base-files: Do not break on non-eth ports 2023-05-09 22:54:38 +02:00
rom
sbin base-files: add 'isup' to the wifi script 2023-04-12 19:49:30 +02:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00