diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2022-09-22 12:05:00 +0200 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2023-05-09 22:54:38 +0200 |
commit | 3da70c64697aa6ebe4e81b162523d68fcff97b32 (patch) | |
tree | b45110cff10f8b260d0c870502aaa579cc452443 /tools/firmware-utils | |
parent | 7611b330bb613409ae4e92ad63dbcc095676468f (diff) | |
download | upstream-3da70c64697aa6ebe4e81b162523d68fcff97b32.tar.gz upstream-3da70c64697aa6ebe4e81b162523d68fcff97b32.tar.bz2 upstream-3da70c64697aa6ebe4e81b162523d68fcff97b32.zip |
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: b688bf83f9d6 ("base-files: rename ethernet devs on known boards")
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'tools/firmware-utils')
0 files changed, 0 insertions, 0 deletions