diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-02 20:45:52 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-08-02 20:45:52 +0000 |
commit | 8c4ac87e8fe665971ebd264395b9de4a4c0deb19 (patch) | |
tree | 3c1a8aa02a2a95e9fd9bf5163d606cb1c5ab69fa /package/base-files | |
parent | a5fdf57a1bbdd4aab94108135506400b5bff6325 (diff) | |
download | mtk-20170518-8c4ac87e8fe665971ebd264395b9de4a4c0deb19.zip mtk-20170518-8c4ac87e8fe665971ebd264395b9de4a4c0deb19.tar.gz mtk-20170518-8c4ac87e8fe665971ebd264395b9de4a4c0deb19.tar.bz2 |
base-files: r22444 caused interfaces to remain down if the macaddr option is used, fix it. Also localize the txqueuelen option variable
SVN-Revision: 22467
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 22828f8..a5bc9ac 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -325,12 +325,12 @@ setup_interface() { # Interface settings grep "$iface:" /proc/net/dev > /dev/null && { - local mtu macaddr + local mtu macaddr txqueuelen config_get mtu "$config" mtu config_get macaddr "$config" macaddr config_get txqueuelen "$config" txqueuelen [ -n "$macaddr" ] && $DEBUG ifconfig "$iface" down - $DEBUG ifconfig "$iface_main" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} ${txqueuelen:+txqueuelen $txqueuelen} up + $DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} ${txqueuelen:+txqueuelen $txqueuelen} up } set_interface_ifname "$config" "$iface" |