[talk] Choosing wifi networks on OpenBSD

Thomas Levine _ at thomaslevine.com
Sat Oct 1 19:03:15 EDT 2016


I wrote something to choose which wifi network to connect to.
http://src.thomaslevine.com/nljo/artifact/1c512ccb16ffa2d2

    $ ./nljo -h
    USAGE:   ./nljo [-h] <interface>
    EXAMPLE: ./nljo iwn0
    
    You must create a file named /etc/hostname.<interface>.<identifier>
    ./nljo will automatically scan for nwids and check which files
    reference
    an appropriate nwid, and then it will symlink one of these files to
    /etc/hostname.<interface>. If multiple files match (perhaps because
    multiple nwids are available), the one with the lowest identifier
    will
    be chosen. Consider the following file names.
    
      /etc/hostname.iwn0.!home
      /etc/hostname.iwn0.REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
      /etc/hostname.iwn0.hackerspace
      /etc/hostname.iwn0.zzz.airport
      /etc/hostname.iwn0.zzz.GreyhoundTerminal FreeWIFI
      /etc/hostname.iwn0.zzz.MacDonalds
    
    If /etc/hostname.iwn0.!home and /etc/hostname.iwn0.airport both
    reference the available nwids (possibly the same nwid), !home will
    probably win because it is lower in alphabetical order, though this
    depends on your locale.

(I chose the name by banging on my keyboard, in case you were
wondering.)    

Surely someone has already written a better version of this program.
Can you point me to a more stable program with a similar interface?
Or does the base system perhaps already include a better approach
for choosing wifi networks?




More information about the talk mailing list