[SOLVED] systemd+wpa_supplicant, but the name of interfaces changes

Hello,
I'm following instructions here for having the wireless connection ready at boot on my machine.
I needed to setup two different daemons since sometimes my wireless interfaces is wlp3s0 and sometimes is wlan0.
When the name of the interface is wlp3s0 everything works fine and I'm correctly given an IP address.
It doesn't happen the same when the name is wlan0.
Here's some output
$ systemctl status [email protected] -l
● [email protected] - Wireless network connectivity (wlan0)
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: inactive (dead)
Jun 22 16:10:19 banzi systemd[1]: Dependency failed for Wireless network connectivity (wlan0).
$ cat /etc/conf.d/network-wireless@wlan0
address=192.168.1.10
netmask=24
broadcast=192.168.1.255
gateway=192.168.1.1
$ cat /etc/conf.d/network-wireless@wlp3s0
address=192.168.1.8
netmask=24
broadcast=192.168.1.255
gateway=192.168.1.1
$ cat /etc/systemd/system/[email protected]
[Unit]
Description=Wireless network connectivity (%i)
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network-wireless@%i
ExecStart=/usr/bin/ip link set dev %i up
ExecStart=/usr/bin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant/wpa_supplicant.conf
ExecStart=/usr/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
ExecStart=/usr/bin/ip route add default via ${gateway}
ExecStop=/usr/bin/ip addr flush dev %i
ExecStop=/usr/bin/ip link set dev %i down
[Install]
WantedBy=multi-user.target
What more info do you need?, what's wrong?
Thanks,
Giuseppe
Last edited by giuscri (2014-06-28 19:53:35)

Check your journal for messages relating to wlan0 and wlp3s0.  I think you may find some kind of error message -- maybe having to do with firmware.  I've seen thing like that break predicatible device names
If you've just one wlan interface, you could turn off predicable device names and just go with wlan0

Similar Messages

Maybe you are looking for

  • How to get rid of title bar of a quicktime window?

    The main problem: I want to display the title info etc about each track as they play in iTunes. How can I do that on an otherwise black screen (desktop) (I don't want to use the visualizer with its psychedelic patterns). Background: I want to play mu

  • How to execute vb script with out using Remote manager in oim 11g r2

    Hi Currently, i have a requirement to execute  vb script (present on a remote machine in which connector server is installed) from oim machine while using Exchange connector (11.1.1.6). This can be achieved by using remote manager,but i dont want to

  • Create Select-Options in Modul-Pool

    Hi, i need to create a TabStrip Control, and the first tab needs a select-options. Is there any way to build it? Thanks.

  • Table entries in the transport

    Hi, What are the steps to add Table entries(SM30) in the transport? I have added the entries using SM30 for the table, but it doesnt appear in the transport request. Please help. Thanks & regards, Yogita

  • Wish to establish iOS app on my iPod

    wish to establish iOS app On my apple iPod 64gb