Date: Sun, 20 May 2012 08:20:08 GMT From: PseudoCylon <moonlightakkiy@yahoo.ca> To: freebsd-usb@FreeBSD.org Subject: Re: usb/167847: [ural] dlink dwl-122g e crashes(?) when trying wap2 crypto Message-ID: <201205200820.q4K8K85K098744@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR usb/167847; it has been noted by GNATS. From: PseudoCylon <moonlightakkiy@yahoo.ca> To: "Christopher J. Ruwe" <cjr@cruwe.de> Cc: bug-followup@freebsd.org 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 <cjr@cruwe.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205200820.q4K8K85K098744>