systemd interface name issue

Holger Schurig holgerschurig at gmail.com
Mon May 6 04:52:57 EDT 2013


Yep, that's a bug in the *.service file.

In systemd, a <servicename>@.service file shouldn't hard-code the "@" part.
As the hostap/wpa_supplicant git tree doesn't contain this file, you should
file a bug report with your distribution.



2013/5/5 zg <ml at mail.tsaitgaist.info>

> 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
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20130506/1e8f12d1/attachment.htm>


More information about the HostAP mailing list