# File lib/facter/util/dhcp_servers.rb, line 4
  def self.gateway_device
    interface = nil
    if routes = Facter::Util::FileRead.read('/proc/net/route')
      routes.each_line do |line|
        device, destination = line.split(' ')
        if destination == '00000000'
          interface = device
          break
        end
      end
    end
    interface
  end