Wednesday 17 March 2010 15:13:21 Janusz Krzysztofik wrote: > 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 >
Hi, Since there have been no more comments on any of these three patches for 2 weeks now, are there any chances for them to be applied? Am I supposed to do anything more about them? Thanks, Janusz > 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
