All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] don't require ebtables in the host kernel
@ 2006-02-22  8:54 Avi Kivity
  2006-02-22 13:33 ` Ewan Mellor
  0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2006-02-22  8:54 UTC (permalink / raw)
  To: xen-devel

The network-bridge script fails when setting a few sysctls
which are only available if ebtables is present in the host
kernel. Fix by ignoring the return value of the sysctl command.

Signed-off-by: Avi Kivity <avi@qumranet.com>

Index: xen/tools/examples/network-bridge
===================================================================
--- xen/tools/examples/network-bridge	(revision 991)
+++ xen/tools/examples/network-bridge	(revision 992)
@@ -158,9 +158,9 @@
 
     # Don't create the bridge if it already exists.
     if ! brctl show | grep -q ${bridge} ; then
-	sysctl -w "net.bridge.bridge-nf-call-arptables=0"
-	sysctl -w "net.bridge.bridge-nf-call-ip6tables=0"
-	sysctl -w "net.bridge.bridge-nf-call-iptables=0"
+	! sysctl -w "net.bridge.bridge-nf-call-arptables=0"
+	! sysctl -w "net.bridge.bridge-nf-call-ip6tables=0"
+	! sysctl -w "net.bridge.bridge-nf-call-iptables=0"
 	brctl addbr ${bridge}
 	brctl stp ${bridge} off
 	brctl setfd ${bridge} 0


-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-22 14:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22  8:54 [PATCH] don't require ebtables in the host kernel Avi Kivity
2006-02-22 13:33 ` Ewan Mellor
2006-02-22 14:23   ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.