From af52aff9fb7105bd301d51c309d414262a0d0286 Mon Sep 17 00:00:00 2001 From: jkim Date: Wed, 19 Oct 2005 22:26:47 +0000 Subject: wpa_supplicant(8) requires -D option for ndis(4) now. --- etc/rc.d/wpa_supplicant | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'etc/rc.d') diff --git a/etc/rc.d/wpa_supplicant b/etc/rc.d/wpa_supplicant index 7512357..6e34924b0 100644 --- a/etc/rc.d/wpa_supplicant +++ b/etc/rc.d/wpa_supplicant @@ -20,10 +20,19 @@ if [ -z "$ifn" ]; then return 1 fi +case ${ifn} in +ndis*) + driver="ndis" + ;; +*) + driver="bsd" + ;; +esac + load_rc_config $name pid_file="/var/run/${name}/${ifn}.pid" -command_args="-B -q -i $ifn -P $pid_file -c $conf_file" +command_args="-B -q -i $ifn -c $conf_file -D $driver -P $pid_file" required_files=$conf_file run_rc_command "$1" -- cgit v1.1