summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2005-10-19 22:26:47 +0000
committerjkim <jkim@FreeBSD.org>2005-10-19 22:26:47 +0000
commitaf52aff9fb7105bd301d51c309d414262a0d0286 (patch)
tree3281da8b3cd330d2e9a17860d5a6b77fd3584c1b /etc
parent046511ce880e689c3741ada06f9cfaaa33b7bda0 (diff)
downloadFreeBSD-src-af52aff9fb7105bd301d51c309d414262a0d0286.zip
FreeBSD-src-af52aff9fb7105bd301d51c309d414262a0d0286.tar.gz
wpa_supplicant(8) requires -D option for ndis(4) now.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/wpa_supplicant11
1 files changed, 10 insertions, 1 deletions
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"
OpenPOWER on IntegriCloud