creds and network
This commit is contained in:
parent
dd1bdc9995
commit
324eb579f7
@ -1 +1 @@
|
||||
0m6IXDJDw8m1+jPTJ9S93WUkdsx4fO7FUa1SRuPdjrBZbweh9s4SJbVKfjJjlvSf4iqgtcFbcLCpHipGDFqRWwgainwYSgEQD0HpWuWpY4uLmJNi7xlOtukBSy3UHLdBagXMQX8bXnO8PrvepoEGKPbPOofvaeGw5C/l/zwaFpGow3eBxygMhdwbc9Ec5zgkvM/tse2zuzFjA5du6tg1D9M+co0yOBkee3lO88YStYgW54U15ClsT9d60ANDsR/nSuAGYUIGEdzYAxgnz26yP2y+HL0FW0ekv0070bawSWLxuPB9RWYv1VfVnX1JBYuUyOSd12sA6keQvm+yfsAqZe7GbkNIW1XUWol+crv4BJ9095bMafuP8p6zIPM++BOJ0yMBZYDAbq93Cd7+CvntuhcNddGqyMqHCTT/GaDTFrGx9z6uD//7WA==--gukSn6+4adNrpZau--ju1BA3I3U2uzjAFHR9XUSA==
|
||||
TtLqRbzI64zVyjGhpOWFkmFzQEaCZBs08uouVY2sAs/9l8lB9NcIPJP7rhd1R/cptFzNjbaWlpRP5tLNqM/7W0Ycpj3Mm4BkSsdqqeczLzUgIT30ApajmY2f0SlUR+U61dB3dk5+aIO/0688OQabpKWLO3NEUQ2jQ3x0zd65wmJg40z1rDMrYvSF4IxRGEEP9fqO3ZYzSYeHh7Gs48T4ivzs3x/XII6PJfKr8xpdpuiRzikgtmeQyYL4sHWWIdB6x526bGk6Yy0M7Uz1Uc1VloLq+rynwEUQl0eO8DkuDhh0uRMP25GaEeElmrK828REXTQbsWshVyQJVHSQOWc/06elAl3F0sDVqNeAe6oYqv43+aszRPIX/kfFX9AQwhnNLP5czcfsD/WIRgqPVU5Pj36hvXbUZGvGrAnc+aeU9sVENwJLrDxPYPi7DPSMVG56TZQB1IX5IqQlBfyG6cFNuLNL6CPn+AoeOWcky/HZWo0kkgXslRnUX74sKBroRaf5SD/fCl9rkJMT--nGCpIgHuciLwMUOx--+4XOyuiRiK0VgxQdLYEGdQ==
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user