methods/ai_server.rb
# Check we've got a default route
# This is required for DHCPd to start
Check we've got a default route
This is required for DHCPd to start
Check we ' ve got a default route This is required for DHCPd to start
def check_default_route(options)
  message = "Getting:\tdefault route"
  command = "netstat -rn |grep default |awk '{print $2}'"
  output  = execute_command(options,message,command)
  if !output.match(/[0-9]/)
    handle_output(options,"Warning:\tNo default route exists")
    if options['test'] != true
      quit(options)
    end
  end
  return
end
def check_default_route ( options ) message = "Getting:\tdefault route" command = "netstat -rn |grep default |awk '{print $2}'" output = execute_command ( options , message , command ) if ! output . match ( / [0-9] / ) handle_output ( options , "Warning:\tNo default route exists" ) if options [ 'test' ] != true quit ( options ) end end return end
Check we've got a default route
This is required for DHCPd to start
Check we ' ve got a default route This is required for DHCPd to start
options
<not_specific>