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 b89168e..3a37247 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"