From: Ben Pfaff Date: Fri, 27 Jul 2012 20:11:20 +0000 (-0700) Subject: ovs-ctl: Start the rest of Open vSwitch if loading brcompat module fails. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=024c78b852ace6319dfd4b46cafc1b9fe4180d77;p=openvswitch ovs-ctl: Start the rest of Open vSwitch if loading brcompat module fails. This may be more useful in practice than failing the entire OVS startup sequence. Debian bug #681955. CC: 681955@bugs.debian.org Reported-by: Bastian Blank Signed-off-by: Ben Pfaff Acked-by: Simon Horman --- diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in index 552cef37..59c2a310 100755 --- a/utilities/ovs-ctl.in +++ b/utilities/ovs-ctl.in @@ -64,7 +64,12 @@ insert_brcompat_mod_if_required () { insert_mod_if_required () { insert_openvswitch_mod_if_required || return 1 if test X"$BRCOMPAT" = Xyes; then - insert_brcompat_mod_if_required || return 1 + if insert_brcompat_mod_if_required; then + : + else + log_warning_msg "could not load brcompat module, disabling bridge compatibility" + BRCOMPAT=no + fi fi }