Subject: misc/34692: add wpa_supplicant rc.d script (patch supplied)
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <j+nbsd@2006.salmi.ch>
List: netbsd-bugs
Date: 10/02/2006 10:25:00
>Number: 34692
>Category: misc
>Synopsis: add wpa_supplicant rc.d script (patch supplied)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Oct 02 10:25:00 +0000 2006
>Originator: Jukka Salmi
>Release: NetBSD 4.99.2
>Environment:
System: NetBSD moray.salmi.ch 4.99.2 NetBSD 4.99.2 (MORAY.APM) #0: Thu Sep 21 10:16:57 CEST 2006 build@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/MORAY.APM i386
Architecture: i386
Machine: i386
>Description:
I'd like to see NetBSD shipping with a wpa_supplicant rc.d script.
Even if one decides later to use something similar to what FreeBSD
uses (e.g. ifconfig_ath0='WPA DHCP'), such a script is needed.
>How-To-Repeat:
n/a
>Fix:
The following patch is also available from
http://salmi.ch/~jukka/patches/nbsd/HEAD/wpa_rc.d.patch
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# wpa_rc.d.patch
#
echo x - wpa_rc.d.patch
sed 's/^X//' >wpa_rc.d.patch << 'END-of-wpa_rc.d.patch'
X+++ etc/rc.d/wpa_supplicant 2006-06-21 16:04:38.000000000 +0200
X@@ -0,0 +1,17 @@
X+#!/bin/sh
X+#
X+# $NetBSD$
X+#
X+
X+# PROVIDE: wpa_supplicant
X+# REQUIRE: network mountcritlocal
X+# BEFORE: NETWORKING dhclient
X+
X+$_rc_subr_loaded . /etc/rc.subr
X+
X+name="wpa_supplicant"
X+rcvar=$name
X+command="/usr/sbin/wpa_supplicant"
X+
X+load_rc_config $name
X+run_rc_command "$1"
XIndex: etc/defaults/rc.conf
X===================================================================
XRCS file: /cvsroot/src/etc/defaults/rc.conf,v
Xretrieving revision 1.77
Xdiff -u -p -r1.77 rc.conf
X+++ etc/defaults/rc.conf 2 Jun 2006 11:38:29 -0000
X@@ -263,6 +263,7 @@ iscsi_target=NO iscsi_target_flags=""
X
X # WPA daemons.
X hostapd=NO hostapd_flags="-B /etc/hostapd.conf"
X+wpa_supplicant=NO wpa_supplicant_flags="-B" # -i<if> -c<file>
X
X # ISDN daemon
X isdnd=NO isdnd_flags=""
XIndex: etc/rc.d/Makefile
X===================================================================
XRCS file: /cvsroot/src/etc/rc.d/Makefile,v
Xretrieving revision 1.56
Xdiff -u -p -r1.56 Makefile
X+++ etc/rc.d/Makefile 2 Jun 2006 11:42:17 -0000
X@@ -29,7 +29,7 @@ CONFIGFILES=\
X savecore screenblank securelevel sshd \
X staticroute swap1 swap2 sysctl sysdb syslogd \
X timed tpctl ttys \
X- veriexec virecover wdogctl wscons wsmoused \
X+ veriexec virecover wdogctl wpa_supplicant wscons wsmoused \
X xdm xfs \
X ypbind yppasswdd ypserv
X FILESDIR= /etc/rc.d
XIndex: etc/mtree/special
X===================================================================
XRCS file: /cvsroot/src/etc/mtree/special,v
Xretrieving revision 1.94
Xdiff -u -p -r1.94 special
X+++ etc/mtree/special 2 Jun 2006 11:46:15 -0000
X@@ -239,6 +239,7 @@
X ./etc/rc.d/veriexec type=file mode=0555
X ./etc/rc.d/virecover type=file mode=0555
X ./etc/rc.d/wdogctl type=file mode=0555
X+./etc/rc.d/wpa_supplicant type=file mode=0555
X ./etc/rc.d/wscons type=file mode=0555
X ./etc/rc.d/wsmoused type=file mode=0555
X ./etc/rc.d/xdm type=file mode=0555
XIndex: distrib/sets/lists/etc/mi
X===================================================================
XRCS file: /cvsroot/src/distrib/sets/lists/etc/mi,v
Xretrieving revision 1.167
Xdiff -u -p -r1.167 mi
X+++ distrib/sets/lists/etc/mi 2 Jun 2006 11:48:24 -0000
X@@ -239,6 +239,7 @@
X ./etc/rc.d/veriexec etc-sys-rc
X ./etc/rc.d/virecover etc-sys-rc
X ./etc/rc.d/wdogctl etc-sysutil-rc
X+./etc/rc.d/wpa_supplicant etc-net-rc
X ./etc/rc.d/wscons etc-sys-rc
X ./etc/rc.d/wsmoused etc-sys-rc
X ./etc/rc.d/xdm etc-x11-rc
XIndex: usr.sbin/postinstall/postinstall
X===================================================================
XRCS file: /cvsroot/src/usr.sbin/postinstall/postinstall,v
Xretrieving revision 1.15
Xdiff -u -p -r1.15 postinstall
X+++ usr.sbin/postinstall/postinstall 2 Jun 2006 11:51:49 -0000
X@@ -744,7 +744,7 @@ do_rc()
X savecore screenblank securelevel sshd \
X staticroute swap1 swap2 sysctl sysdb syslogd \
X timed tpctl ttys \
X- veriexec virecover wdogctl wscons wsmoused \
X+ veriexec virecover wdogctl wpa_supplicant wscons wsmoused \
X xdm xfs \
X ypbind yppasswdd ypserv
X failed=$(( ${failed} + $? ))
END-of-wpa_rc.d.patch
exit