The following reply was made to PR usb/167847; it has been noted by GNATS. From: PseudoCylon <[email protected]> To: "Christopher J. Ruwe" <[email protected]> Cc: [email protected] Subject: Re: usb/167847: [ural] dlink dwl-122g e crashes(?) when trying wap2 crypto Date: Sun, 20 May 2012 02:19:51 -0600
On Sat, May 19, 2012 at 10:57 AM, Christopher J. Ruwe <[email protected]> wrote: > > Is there any initialization order that I should follow in my rc.conf? For a workaround, save following script into /usr/local/etc/rc.d/ as "ap_setup" --bigin script-- #!/bin/sh # PROVIDE: ap_setup # REQUIRE: DAEMON # REQUIRE: mountcritremote # BEFORE: LOGIN # KEYWORD: nojail shutdown . /etc/rc.subr name="ap_setup" rcvar=`set_rcvar` start_cmd="${name}_start" stop_cmd="${name}_stop" load_rc_config $name eval "${rcvar}=\${${rcvar}:-'NO'}" ap_setup_start() { /etc/rc.d/hostapd onestart ifconfig wlan0 inet 192.168.3.1 /usr/local/etc/rc.d/isc-dhcpd onestart #if used } ap_setup_stop() { /usr/local/etc/rc.d/isc-dhcpd onestop #if used /etc/rc.d/hostapd onestop } run_rc_command "$1" --end script-- Then, add following lines to /etc/rc.conf wlans_run0="wlan0" create_args_wlan0="wlanmode ap" ap_setup_enable="YES" #the same name as workaround script dhcpd_ifaces="wlan0" #if used Try not to use other standard instructions since it might break init order. AK _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "[email protected]"
