etc/rc.d/wpa_supplicant: Fix broken check for ndis(4) interfaces.
authorSascha Wildner <saw@online.de>
Wed, 7 Sep 2011 13:26:53 +0000 (15:26 +0200)
committerSascha Wildner <saw@online.de>
Wed, 7 Sep 2011 13:27:06 +0000 (15:27 +0200)
commitd98188c51a8aad8ed0bc361bf940ee077eff7a84
tree3f4f618906cdcfd491954e03bd4d499f10cbdf3c
parent534c03f015ea33301dc9cabcf8a90413bd8ebf02
etc/rc.d/wpa_supplicant: Fix broken check for ndis(4) interfaces.

With the new wlan stack, we need to check a sysctl to determine if it
is an ndis(4) interface because it is now wlanX that gets passed to
the script.

Depending on this, wpa_supplicant(8) will be started with either
"-D bsd" or "-D ndis".

Reported-by: Max Herrgard <herrgard@gmail.com>
Taken-from:  FreeBSD
etc/rc.d/wpa_supplicant