ia64/xen-unstable

view tools/hotplug/NetBSD/Makefile @ 19497:2f6ed9318c03

network-bridge: Fix do_ifup in the case of ${bridge} != ${netdev}

On RHEL5.2, ifup ${bridge} fails if ${bridge} != ${netdev},
because RHEL5.2's ifup ${bridge} runs the following sequence:

1. Search CONFIG that has the same mac address of ${bridge}.=20
ifcfg-${netdev} is found.
2. Run "ip link set dev ${netdev} up".
# ${bridge} is expected.
3. Output "Failed to bring up ${netdev}."
Because ${netdev} does not exist.

Thus, do_ifup() should not use ifup if ${bridge} != ${netdev}.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Apr 02 11:48:10 2009 +0100 (2009-04-02)
parents 633e08774dab
children 887337323bd8
line source
1 XEN_ROOT = ../../../
2 include $(XEN_ROOT)/tools/Rules.mk
4 # Xen configuration dir and configs to go there.
5 XEN_CONFIG_DIR = /etc/xen
7 # Xen script dir and scripts to go there.
8 XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
9 XEN_SCRIPTS =
10 XEN_SCRIPTS += block-nbsd
11 XEN_SCRIPTS += qemu-ifup-nbsd
12 XEN_SCRIPTS += vif-bridge-nbsd
13 XEN_SCRIPTS += vif-ip-nbsd
15 XEN_SCRIPT_DATA =
17 .PHONY: all
18 all:
20 .PHONY: build
21 build:
23 .PHONY: install
24 install: all install-scripts
26 .PHONY: install-scripts
27 install-scripts:
28 $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
29 set -e; for i in $(XEN_SCRIPTS); \
30 do \
31 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
32 done
33 set -e; for i in $(XEN_SCRIPT_DATA); \
34 do \
35 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
36 done
38 .PHONY: clean
39 clean: