Module Name: src
Committed By: jmcneill
Date: Thu Jan 22 19:50:21 UTC 2015
Modified Files:
src/etc/defaults: rc.conf
src/etc/rc.d: wpa_supplicant
Log Message:
It doesn't make sense to start wpa_supplicant from an rc.d script without
the -B flag, so always prepend it to $rc_flags.
To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/etc/defaults/rc.conf
cvs rdiff -u -r1.5 -r1.6 src/etc/rc.d/wpa_supplicant
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/defaults/rc.conf
diff -u src/etc/defaults/rc.conf:1.128 src/etc/defaults/rc.conf:1.129
--- src/etc/defaults/rc.conf:1.128 Fri Sep 26 11:04:06 2014
+++ src/etc/defaults/rc.conf Thu Jan 22 19:50:21 2015
@@ -1,4 +1,4 @@
-# $NetBSD: rc.conf,v 1.128 2014/09/26 11:04:06 tron Exp $
+# $NetBSD: rc.conf,v 1.129 2015/01/22 19:50:21 jmcneill Exp $
#
# /etc/defaults/rc.conf --
# default configuration of /etc/rc.conf
@@ -300,7 +300,7 @@ iscsi_target=NO iscsi_target_flags=""
# WPA daemons.
hostapd=NO hostapd_flags="-B /etc/hostapd.conf"
-wpa_supplicant=NO wpa_supplicant_flags="-B" # -i<if> -c<file>
+wpa_supplicant=NO wpa_supplicant_flags="" # -i<if> -c<file>
# ISDN daemon
isdnd=NO isdnd_flags=""
Index: src/etc/rc.d/wpa_supplicant
diff -u src/etc/rc.d/wpa_supplicant:1.5 src/etc/rc.d/wpa_supplicant:1.6
--- src/etc/rc.d/wpa_supplicant:1.5 Thu Jan 23 07:26:51 2014
+++ src/etc/rc.d/wpa_supplicant Thu Jan 22 19:50:21 2015
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: wpa_supplicant,v 1.5 2014/01/23 07:26:51 spz Exp $
+# $NetBSD: wpa_supplicant,v 1.6 2015/01/22 19:50:21 jmcneill Exp $
#
# PROVIDE: wpa_supplicant
@@ -29,6 +29,7 @@ wpa_supplicant_precmd()
if [ ! -d /var/run/wpa_supplicant ]; then
mkdir -p -m 755 /var/run/wpa_supplicant
fi
+ rc_flags="-B $rc_flags"
}
load_rc_config $name