summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-04-08 23:12:15 +0000
committersam <sam@FreeBSD.org>2008-04-08 23:12:15 +0000
commitc20bcaca65b4e3e98391498b56ef7214622bf1f6 (patch)
treeb63290a5b5f2b3d7473b31feda3a21a9684f6e68 /etc
parente3d4b6466f639d64e83b6fc7b70ba0a5598257c2 (diff)
downloadFreeBSD-src-c20bcaca65b4e3e98391498b56ef7214622bf1f6.zip
FreeBSD-src-c20bcaca65b4e3e98391498b56ef7214622bf1f6.tar.gz
o add rc.conf knobs to set the wpa_supplicant program, logging flags,
and config file o change default logging options from -q to -s (log to syslog); this is currently broken for boot-time startup as syslogd is started too late but that'll be dealt with separately MFC after: 2 weeks
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf4
-rw-r--r--etc/rc.d/wpa_supplicant6
2 files changed, 7 insertions, 3 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index a470a2f..75eae06c 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -105,6 +105,10 @@ background_dhclient="NO" # Start dhcp client in the background.
#background_dhclient_fxp0="YES" # Start dhcp client on fxp0 in the background.
synchronous_dhclient="YES" # Start dhclient directly on configured
# interfaces during startup.
+wpa_supplicant_program="/usr/sbin/wpa_supplicant"
+wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant
+wpa_supplicant_conf_file="/etc/wpa_supplicant.conf"
+#
firewall_enable="NO" # Set to YES to enable firewall functionality
firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall)
diff --git a/etc/rc.d/wpa_supplicant b/etc/rc.d/wpa_supplicant
index 044380c..7e724f0 100644
--- a/etc/rc.d/wpa_supplicant
+++ b/etc/rc.d/wpa_supplicant
@@ -12,8 +12,6 @@
name="wpa_supplicant"
rcvar=
-command="/usr/sbin/${name}"
-conf_file="/etc/wpa_supplicant.conf"
ifn="$2"
if [ -z "$ifn" ]; then
@@ -47,8 +45,10 @@ esac
load_rc_config $name
+command=${wpa_supplicant_program}
+conf_file=${wpa_supplicant_conf_file}
pidfile="/var/run/${name}/${ifn}.pid"
-command_args="-B -q -i $ifn -c $conf_file -D $driver -P $pidfile"
+command_args="-B -i $ifn -c $conf_file -D $driver -P $pidfile"
required_files=$conf_file
run_rc_command "$1"
OpenPOWER on IntegriCloud