Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use distroty to determine location of brctl

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information...
commit 5885a676abe2609a833fffa0f6aa1f8efe77ed84 1 parent b810b9d
Jon Ludlam jonludlam authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  ocaml/network/network_utils.ml
2  ocaml/network/network_utils.ml
@@ -28,7 +28,7 @@ let ovs_vsctl = "/usr/bin/ovs-vsctl"
28 28 let ovs_ofctl = "/usr/bin/ovs-ofctl"
29 29 let ovs_appctl = "/usr/bin/ovs-appctl"
30 30 let ovs_vlan_bug_workaround = "/usr/sbin/ovs-vlan-bug-workaround"
31   -let brctl = "/usr/sbin/brctl"
  31 +let brctl = match Fhs.distroty with | Fhs.Debianlike -> "/sbin/brctl" | Fhs.Centoslike -> "/usr/sbin/brctl"
32 32 let modprobe = "/sbin/modprobe"
33 33 let ethtool = "/sbin/ethtool"
34 34 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.