creds and network

This commit is contained in:
2022-03-28 23:43:35 +03:00
parent dd1bdc9995
commit 324eb579f7
2 changed files with 6 additions and 1 deletions

View File

@ -91,6 +91,11 @@ class Routers
cpuinfo(connection).lines[1].split(":")[1].strip
end
def networks(connection)
nets = connection.exec!( "uci show | grep ssid")
nets.lines.collect{|line| line.split("=").last.strip}#.join(",")
end
def get_info(connection)
{machine: machine(connection) , host_name: admin_name(connection)}
end