From: jow Date: Wed, 16 Sep 2009 14:21:19 +0000 (+0000) Subject: [package] base-files: clear ip addresses on interfaces that are about to be added... X-Git-Url: http://git.rohieb.name/openwrt.git/commitdiff_plain/9fbe9e1ad0dc0df121c0c9d3354349202e6060b2 [package] base-files: clear ip addresses on interfaces that are about to be added to a bridge git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17596 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/Makefile b/package/base-files/Makefile index d87253b4d..6995601a2 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=base-files -PKG_RELEASE:=30 +PKG_RELEASE:=31 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index bfadf40c8..fbbf0e119 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -123,6 +123,7 @@ prepare_interface() { append newdevs "$dev" done uci_set_state network "$config" device "$newdevs" + $DEBUG ifconfig "$iface" 0.0.0.0 $DEBUG brctl addif "br-$config" "$iface" # Bridge existed already. No further processing necesary } || { @@ -131,6 +132,7 @@ prepare_interface() { $DEBUG brctl addbr "br-$config" $DEBUG brctl setfd "br-$config" 0 $DEBUG ifconfig "br-$config" up + $DEBUG ifconfig "$iface" 0.0.0.0 $DEBUG brctl addif "br-$config" "$iface" $DEBUG brctl stp "br-$config" $stp # Creating the bridge here will have triggered a hotplug event, which will