base-files: clear ip addresses on interfaces that are about to be added to a bridge
SVN-Revision: 17596
This commit is contained in:
parent
dd88fdee33
commit
2f921cb48d
2 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=30
|
PKG_RELEASE:=31
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,7 @@ prepare_interface() {
|
||||||
append newdevs "$dev"
|
append newdevs "$dev"
|
||||||
done
|
done
|
||||||
uci_set_state network "$config" device "$newdevs"
|
uci_set_state network "$config" device "$newdevs"
|
||||||
|
$DEBUG ifconfig "$iface" 0.0.0.0
|
||||||
$DEBUG brctl addif "br-$config" "$iface"
|
$DEBUG brctl addif "br-$config" "$iface"
|
||||||
# Bridge existed already. No further processing necesary
|
# Bridge existed already. No further processing necesary
|
||||||
} || {
|
} || {
|
||||||
|
@ -131,6 +132,7 @@ prepare_interface() {
|
||||||
$DEBUG brctl addbr "br-$config"
|
$DEBUG brctl addbr "br-$config"
|
||||||
$DEBUG brctl setfd "br-$config" 0
|
$DEBUG brctl setfd "br-$config" 0
|
||||||
$DEBUG ifconfig "br-$config" up
|
$DEBUG ifconfig "br-$config" up
|
||||||
|
$DEBUG ifconfig "$iface" 0.0.0.0
|
||||||
$DEBUG brctl addif "br-$config" "$iface"
|
$DEBUG brctl addif "br-$config" "$iface"
|
||||||
$DEBUG brctl stp "br-$config" $stp
|
$DEBUG brctl stp "br-$config" $stp
|
||||||
# Creating the bridge here will have triggered a hotplug event, which will
|
# Creating the bridge here will have triggered a hotplug event, which will
|
||||||
|
|
Loading…
Reference in a new issue