[package] base-files: r22444 caused interfaces to remain down if the macaddr option...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Aug 2010 20:45:52 +0000 (20:45 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Aug 2010 20:45:52 +0000 (20:45 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22467 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 22828f8..a5bc9ac 100755 (executable)
@@ -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"
 
This page took 0.02766 seconds and 4 git commands to generate.