systemd interface name issue
Holger Schurig
holgerschurig
Mon May 6 04:35:00 PDT 2013
Oh, my bad. I did "find -name *.service", not realizing that some autojunk
will modify an "*.service.in" file ...
2013/5/6 Arend van Spriel <arend at broadcom.com>
> 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<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<http://lists.shmoo.com/mailman/listinfo/hostap>
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> HostAP mailing list
>> HostAP at lists.shmoo.com
>> http://lists.shmoo.com/**mailman/listinfo/hostap<http://lists.shmoo.com/mailman/listinfo/hostap>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20130506/b60a7145/attachment-0001.htm>
More information about the Hostap
mailing list