openwrt-mirror/package/base-files/files/lib
Til Kaiser 055d877a20 base-files: add ucidef_set_interface_netdev_range function
The ucidef_set_interface* functions can be used to
add network interfaces to a default network configuration.
Such network interfaces often have the same base interface
name (e.g., eth* or lan*). On devices with many network ports,
adding all ports to the default config can become inconvenient.

This commit adds a new uci function ucidef_set_interface_netdev_range,
which adds network interfaces for a specific port range to a given
OpenWrt interface. The first parameter is the OpenWrt interface, the
second is the base interface name, the third is the port start, and
the fourth is the port end range.

Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/17251
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-10-06 19:06:26 +02:00
..
functions base-files: add ucidef_set_interface_netdev_range function 2025-10-06 19:06:26 +02:00
preinit base-files: add ucidef_set_network_device_path_port function 2024-10-19 19:10:56 +02:00
upgrade base-files: add dtb support to emmc_upgrade_tar() 2025-06-22 22:17:20 +02:00
functions.sh base-files: find_mmc_part: Silence error when no MMC exists 2025-07-27 18:08:44 +02:00