systemd interface name issue
Arend van Spriel
arend
Mon May 6 02:17:32 PDT 2013
On 05/06/2013 10:52 AM, Holger Schurig wrote:
> 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.
Actually, that file is generated when building wpa_supplicant with dbus
configured.
Regards,
Arend
> 2013/5/5 zg <ml at mail.tsaitgaist.info <mailto: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 <mailto:HostAP at lists.shmoo.com>
> http://lists.shmoo.com/mailman/listinfo/hostap
>
>
>
>
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
More information about the Hostap
mailing list