diff options
author | Thom May <thom@may.lt> | 2015-04-16 18:34:30 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-04-16 18:34:30 +0100 |
commit | d3391eba5a287840dec4446397f61a098831043a (patch) | |
tree | f2acffe0659e11e728e6add0478a0d53b02ac049 | |
parent | 8aea6701b5680b146a3f5a94eb34f9caf5c861b6 (diff) | |
parent | 991bd78be75788ff6ce8a72720adac95ca7907ea (diff) | |
download | ohai-d3391eba5a287840dec4446397f61a098831043a.tar.gz |
Merge pull request #510 from tas50/gentoo_ip
Update ip binary detection logic to work on Gentoo/CoreOS
-rw-r--r-- | lib/ohai/plugins/linux/network.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb index 42251bd7..314c8676 100644 --- a/lib/ohai/plugins/linux/network.rb +++ b/lib/ohai/plugins/linux/network.rb @@ -34,7 +34,7 @@ Ohai.plugin(:Network) do end def iproute2_binary_available? - ["/sbin/ip", "/usr/bin/ip"].any? { |path| File.exist?(path) } + ["/sbin/ip", "/usr/bin/ip", "/bin/ip"].any? { |path| File.exist?(path) } end collect_data(:linux) do |