cloudmesh / cloudmesh-pi-burn

Burns many SD cards so we can build a Raspberry PI cluster
Other
18 stars 12 forks source link

burn: find wifi automatically #39

Open laszewsk opened 3 years ago

laszewsk commented 3 years ago

from pi-imager

ifdef Q_OS_WIN

program = "netsh";
args << "wlan" << "show" << "interfaces";
regexpstr = "[ \t]+SSID[ \t]*: (.+)";

else

ifdef Q_OS_DARWIN

program = "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport";
args << "-I";
regexpstr = "[ \t]+SSID: (.+)";

else

program = "iwgetid";
args << "-r";

endif

OSX: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I |fgrep " SSID:"

jpfleischer commented 2 years ago

this is likely implemented- however, it needs a test (a pytest)

laszewsk commented 2 years ago

we believe this is implemented, test

laszewsk commented 2 years ago

I thought we implemented this, would be good to have a pytest so we do not have to burn to test it