openwrt/package/base-files/files/lib/preinit
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
..
02_default_set_state treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
02_sysinfo treewide: populate boardname and model earlier 2017-07-15 23:13:34 +02:00
10_indicate_failsafe treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
10_indicate_preinit base-files: rename ethernet devs on known boards 2022-09-10 21:16:20 +02:00
30_failsafe_wait failsafe: run on all consoles listed in /proc/cmdline 2022-06-19 12:40:30 +02:00
40_run_failsafe_hook treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
50_indicate_regular_preinit treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
70_initramfs_test treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
80_mount_root base-files: add support for restoring config from tmpfs 2021-02-28 00:09:09 +00:00
99_10_failsafe_login failsafe: run on all consoles listed in /proc/cmdline 2022-06-19 12:40:30 +02:00
99_10_run_init treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00