systemd: Fix systemd interface alias

In the systemd interface templated the alias entry was specified
with wlan0 hard coded. Changing it to %i in this patch. [Bug 477]

Reported-by: zg <ml@mail.tsaitgaist.info>
Signed-hostap: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
This commit is contained in:
Arend van Spriel 2013-05-09 11:25:48 +03:00 committed by Jouni Malinen
parent 6ea1f4135b
commit 893a0a558c
3 changed files with 3 additions and 3 deletions

View file

@ -10,4 +10,4 @@ Type=simple
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
[Install] [Install]
Alias=multi-user.target.wants/wpa_supplicant-nl80211@wlan0.service Alias=multi-user.target.wants/wpa_supplicant-nl80211@%i.service

View file

@ -10,4 +10,4 @@ Type=simple
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
[Install] [Install]
Alias=multi-user.target.wants/wpa_supplicant-wired@wlan0.service Alias=multi-user.target.wants/wpa_supplicant-wired@%i.service

View file

@ -10,4 +10,4 @@ Type=simple
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
[Install] [Install]
Alias=multi-user.target.wants/wpa_supplicant@wlan0.service Alias=multi-user.target.wants/wpa_supplicant@%i.service