Skip to content
Browse files

Use distroty to determine location of brctl

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information...
1 parent b810b9d commit 5885a676abe2609a833fffa0f6aa1f8efe77ed84 @jonludlam jonludlam committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ocaml/network/network_utils.ml
View
2 ocaml/network/network_utils.ml
@@ -28,7 +28,7 @@ let ovs_vsctl = "/usr/bin/ovs-vsctl"
let ovs_ofctl = "/usr/bin/ovs-ofctl"
let ovs_appctl = "/usr/bin/ovs-appctl"
let ovs_vlan_bug_workaround = "/usr/sbin/ovs-vlan-bug-workaround"
-let brctl = "/usr/sbin/brctl"
+let brctl = match Fhs.distroty with | Fhs.Debianlike -> "/sbin/brctl" | Fhs.Centoslike -> "/usr/sbin/brctl"
let modprobe = "/sbin/modprobe"
let ethtool = "/sbin/ethtool"
let bonding_dir = "/proc/net/bonding/"

0 comments on commit 5885a67

Please sign in to comment.
Something went wrong with that request. Please try again.