diff options
author | Ethan Jackson <ethan@nicira.com> | 2010-09-22 17:29:12 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2010-09-22 17:50:38 -0700 |
commit | 2b8e39ae83c28509accc56597da0fae1032aaaf1 (patch) | |
tree | 234ddf93d71d4d78d1a8f2c64dc12e844ab71f0f /debian | |
parent | fca426efdad5e21a55f4a106ce7b2f0d1c4a5875 (diff) |
debian: Support two locations for ethtool
The ethtool binary recently moved from /usr/sbin to /sbin. This
change falls back to /usr/sbin/ethtool if /sbin/ethtool does not
exist.
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/ovs-bugtool | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/ovs-bugtool b/debian/ovs-bugtool index f991f27a..6f792eea 100755 --- a/debian/ovs-bugtool +++ b/debian/ovs-bugtool @@ -114,7 +114,6 @@ CAT = '/bin/cat' DF = '/bin/df' DMESG = '/bin/dmesg' DMIDECODE = '/usr/sbin/dmidecode' -ETHTOOL = '/sbin/ethtool' FDISK = '/sbin/fdisk' FIND = '/usr/bin/find' IFCONFIG = '/sbin/ifconfig' @@ -136,6 +135,11 @@ TC = '/sbin/tc' UPTIME = '/usr/bin/uptime' ZCAT = '/bin/zcat' +ETHTOOL = '/sbin/ethtool' +# ETHTOOL recently moved from /usr/sbin to /sbin in debian +if not os.path.isfile(ETHTOOL): + ETHTOOL = '/usr/sbin/ethtool' + # # PII -- Personally identifiable information. Of particular concern are # things that would identify customers, or their network topology. |