Hi, Any chances for this set of patches being either accepted, or rejected, or changes requested, not just postponed silently?
Thanks, Janusz ---------- Original message ---------- Subject: [PATCH] Add base support for multiple configs over one network interface Date: 2010-03-17 From: Janusz Krzysztofik <[email protected]> To: OpenWrt Development List <[email protected]> This patch modifies /etc/hotplug.d/net/10-net:addif() function in a way that allows for automatic startup of all network interface configs that match the just hot/cold-plugged interface name, not only the first one found. For that, it makes use of a new function, /lib/network/config.sh:find_configs() provided by my preceding patch, "Provide a helper function that gives a list of all configs matching a network interface"[1] For multiple configs over one interface working correctly, other patches may be required as well. One working example is my prevois patch, "Allow for PPPoE over LAN"[2]. Depends on patch [1]. Created and tested against openwrt svn revision 20252. [1] https://lists.openwrt.org/pipermail/openwrt-devel/2010-March/006340.html [2] https://lists.openwrt.org/pipermail/openwrt-devel/2010-March/006316.html Signed-off-by: Janusz Krzysztofik <[email protected]> --- --- trunk/package/base-files/files/etc/hotplug.d/net/10-net.orig 2010-03-11 23:45:25.000000000 +0100 +++ trunk/package/base-files/files/etc/hotplug.d/net/10-net 2010-03-17 14:27:47.000000000 +0100 @@ -15,13 +15,16 @@ addif() { esac scan_interfaces - local cfg="$(find_config "$INTERFACE")" + local cfgs="$(find_configs "$INTERFACE")" - # check the autoload setting - config_get auto "$cfg" auto - case "$auto" in - 1|on|enabled) setup_interface "$INTERFACE";; - esac + local cfg + for cfg in $cfgs; do + # check the autoload setting + config_get auto "$cfg" auto + case "$auto" in + 1|on|enabled) setup_interface "$INTERFACE" "$cfg";; + esac + done # find all vlan configurations for this interface and set them up as well ------------------------------------------------------- _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
