Skip to content

WiFi on bootup with guessnet

Install the guessnet package. This will install the guessnet-ifupdown helper tool.

Now edit your /etc/network/interfaces file and add the following lines:

auto wlan0
iface wlan0 inet dhcp
    wpa-ssid CompanyWLAN
    wpa-proto WPA 
    wpa-key-mgmt WPA-PSK
    wpa-psk S3Cr3tKe4

mapping wlan0
    script guessnet-ifupdown
    map default: wlan0-open
    map autofilter: true  # look for wlan0- interfaces
    map timeout: 9
    map init-time: 9   # for slow drivers
    map verbose: true
    map debug: false

iface wlan0-home inet dhcp
    test wireless essid WLANatHOME closed
    wpa-psk S3cr3tH0meKe4
    wpa-key-mgmt WPA-PSK
    wpa-proto WPA 
    wpa-ssid WLANatHOME

# if all else fails: pick an open network
iface wlan0-open inet dhcp
    test wireless open
    wireless-essid any 
    wireless-mode auto

This will first try to connect to the CompanyWLAN network and if this is not found, try the WLANatHOME. If everything fails, it will connect to any open Access Point.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Markdown format allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options