summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-31 22:32:28 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-31 22:32:28 +0000
commitf2ce924259e313d8c43b9fb33fc9ac481cc4637a (patch)
treedbed88b624d47747626008b4b05a3babe17c0e1a /package
parent805beb6cd9d18738f62aaeab91247da8e5824787 (diff)
[package] add txqueuelen option, patch from Roberto Riggio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22444 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 8321b191b..22828f83b 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -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"