merge r13258 to 8.09
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 27 Nov 2008 15:36:20 +0000 (15:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 27 Nov 2008 15:36:20 +0000 (15:36 +0000)
SVN-Revision: 13375

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

index b89168e07c7eb172160c0fd82e6bbeb3b2a14329..3a3724706ef3a1e7e6c8d963ec81732083014420 100755 (executable)
@@ -232,6 +232,7 @@ setup_interface() {
        config_get mtu "$config" mtu
        config_get macaddr "$config" macaddr
        grep "$iface:" /proc/net/dev > /dev/null && \
+               $DEBUG ifconfig "$iface" down && \
                $DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up
        set_interface_ifname "$config" "$iface"