Ok, I had a look at the code and also walked around the street, creating
profiles for various open networks... everything seems ok -- the profiles
are named after the AP MAC, as they should be.
I have updated the attachment to the original post, having made some changes:
- I moved the config directories from /etc into /etc/network-wizard
- I added a "sleep 1" and a rescan, when the wireless scan at boot time
finds no networks.
- The startup code had a little bug with the name of profiles for open
networks: it expected "open", when it is actually "Open" (the only effect
of this is that the profiled networks lost their priority over non-profiled
ones).
- I added recognizing "Mode:Master" in the scan output (so the info in the
scan window has "Master" in the first field, rather than nothing). I assume
it is ok... all the networks I've seen were "master".
- Improved debug output.
I've also checked the code for autoconnecting
after boot and it
works fine -- message dialogs and all (I also redirect the output to a
file, /tmp/network-connect.log, so people can see what it did).
I'm attaching here the update to the desktop "Connect" icon, so it gives
the option of auto-(dis)connecting when right-clicking on it.
There's something I think I forgot to mention before: in net-setup.sh, the
BLACKLIST_FILE parameter should be changed to refer to the actual file
used by Puppy for blacklisting modules (my init scripts use a different one).
There's one more little thing I did:
With the newer wireless drivers (rt73usb in my case), the output of the
wireless scan shows encryption info for WPA, if an AP uses it.
For example WPA:
Code: Select all
IE: WPA Version 1
Group Cipher : WEP-40
Pairwise Ciphers (1) : WEP-40
Authentication Suites (1) : PSK
and WPA2:
Code: Select all
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
I've modified the scan window so that instead of "Encryption:on", it
actually tells you what kind of encryption is used.
One thing I wasn't sure about, though: with WPA, it mentions using WEP-40,
while the wizard actually says it uses WPA/TKIP... is this ok?
And one last thing: should I add the signal level to the scan window
tooltips, as well as the quality? At the moment is says something like
"Strength:47/100", but I could trivially change it to display the entire
line of info from the scan:
Code: Select all
Quality=47/100 Signal level=-78 dB