:: Re: [DNG] Systemd Shims
Góra strony
Delete this message
Reply to this message
Autor: Isaac Dunham
Data:  
Dla: Didier Kryn
CC: dng
Nowe tematy: [DNG] howto wifi roaming [was Re: Systemd Shims]
Temat: Re: [DNG] Systemd Shims
On Tue, Aug 18, 2015 at 02:19:20PM +0200, Didier Kryn wrote:
> Le 18/08/2015 12:49, Edward Bartolo a écrit :
> >At the moment I am stuck trying to use sudo to run ifup from within my
> >frontend.
>     Just in case, here are a few things I know about wpa_supplicant:

>
>      wpa_supplicant does ifups automatically when it connects to a wifi
> station. If an interface name is not specified in wpa_supplicant.conf, in
> the proper section of this station, it ifups the interface named "default".

>
>     Therefore you shouldn't ifup yourself. You only need to fill the
> configuration files, wpa_supplicant.conf, via the control socket and
> interfaces by some method probably involving sudo.


I've not been able to figure out what that would look like.
Could you give a sample wpa_supplicant.conf and /etc/network/interfaces?

Assume the following configuration:
network 1: (WPA)
    SSID = "home"
    pass = "topsecret"
    ip = 192.168.1.100
    router = 192.168.1.0
    nameserver = 8.8.8.8


network 2: (open, DHCP)
    SSID = "public"


This is what I know would go in wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=net
network={
    ssid="home"
    #psk="topsecret"
    psk=c406ef685867ff2dca906a4992ab997d6ebd5c747451113c0c0ead704d859010
}
network={
    ssid="public"
    key_mgmt=NONE
}