openwrt/package/base-files/files/lib/functions
Martin Kennedy b688bf83f9 base-files: rename ethernet devs on known boards
Some platforms lack an established way to name netdevs; for example,
on x86, PCIe-based ethernet interfaces will be named starting from
eth0 in the order they are probed. This is a problem for many devices
supported explicitly by OpenWrt which have hard-wired, standalone or
on-CPU NICs not supported by DSA (which is usually used to rename the
ports based on their ostensible function).

To fix this, add a mapping between ethernet device name and sysfs
device path to board.json; this allows us to configure ethernet device
names we know about for a given board so that they correspond to
external labeling.

Signed-off-by: Martin Kennedy <hurricos@gmail.com>
2022-09-10 21:16:20 +02:00
..
caldata.sh base-files: add minimal mmc support 2021-11-01 00:56:51 +01:00
leds.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
migrations.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
network.sh base-files: fix comment typo in lib/functions/network.sh 2020-09-02 01:11:17 +02:00
preinit.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
service.sh base-files: remove function service_kill 2014-06-02 12:43:10 +00:00
system.sh base-files: add mtd_get_mac_encrypted_arcadyan function 2022-08-19 14:41:14 +02:00
uci-defaults.sh base-files: rename ethernet devs on known boards 2022-09-10 21:16:20 +02:00