Method: UUIDTools::UUID.ifconfig_path

Defined in:
lib/uuidtools.rb

.ifconfig_pathObject

Find the path of the ifconfig(8) command if it is present



615
616
617
618
619
# File 'lib/uuidtools.rb', line 615

def self.ifconfig_path
  path = `which #{UUID.ifconfig_command} 2>/dev/null`.strip
  path = UUID.ifconfig_path_default if (path == "" && File.exist?(UUID.ifconfig_path_default))
  return (path === "" ? nil : path)
end