add txqueuelen option, patch from Roberto Riggio
authorFlorian Fainelli <florian@openwrt.org>
Sat, 31 Jul 2010 22:32:28 +0000 (22:32 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 31 Jul 2010 22:32:28 +0000 (22:32 +0000)
SVN-Revision: 22444

package/base-files/files/lib/network/config.sh

index 8321b191bf7dd4b0b575bf1524370875ca1980ad..22828f83bbfccbf1e3a9c2ca87f4525c8f222166 100755 (executable)
@@ -328,8 +328,9 @@ setup_interface() {
                local mtu macaddr
                config_get mtu "$config" mtu
                config_get macaddr "$config" macaddr
+               config_get txqueuelen "$config" txqueuelen
                [ -n "$macaddr" ] && $DEBUG ifconfig "$iface" down
-               $DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up
+               $DEBUG ifconfig "$iface_main" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} ${txqueuelen:+txqueuelen $txqueuelen} up
        }
        set_interface_ifname "$config" "$iface"