systemd interface name issue

zg ml
Sun May 5 11:33:14 PDT 2013


Hi,

I'm using arch linux, with wpa_supplicant 2.0-3, and systemd
I named my wireless interface 'wifi0' instead of 'wlan0' so to avoid race conditions, as recommended

when trying to enable wpa_supplicant in systemd for this interface, I get the wrong link:

  systemctl enable wpa_supplicant at wifi0.service
  ln -s '/usr/lib/systemd/system/wpa_supplicant at .service' '/etc/systemd/system/multi-user.target.wants/wpa_supplicant at wlan0.service'

wlan0 is used instead of wifi0.

in */usr/lib/systemd/system/wpa_supplicant at .service* I found the following line:

  [Install]
  Alias=multi-user.target.wants/wpa_supplicant at wlan0.service

wlan0 is hardcoded.

If I change it to 

  [Install]
  Alias=multi-user.target.wants/wpa_supplicant@%i.service

the install link works.

Is this an bug/issue/??

thx,
zg



More information about the Hostap mailing list