From: Jo-Philipp Wich Date: Mon, 2 Aug 2010 20:45:52 +0000 (+0000) Subject: base-files: r22444 caused interfaces to remain down if the macaddr option is used... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8c4ac87e8fe665971ebd264395b9de4a4c0deb19;p=openwrt%2Fstaging%2Fthess.git 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 --- diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 22828f83bb..a5bc9ac6f2 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"