Date: Wed, 5 Jul 2000 19:39:32 -0400 (EDT) From: adrian@ubergeeks.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/19719: start_if.* hooks for pccard_ether Message-ID: <200007052339.TAA02985@cluebie.esolstice.int>
next in thread | raw e-mail | index | archive | help
>Number: 19719 >Category: bin >Synopsis: pccard_ether lacks the start_if hooks as used in rc.network >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 05 16:40:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Adrian Filipi-Martin >Release: FreeBSD 4.0-STABLE i386 >Organization: Ubergeeks Consulting >Environment: 4-STABLE from 06/29/00. >Description: /etc/pccard_ether does not look for start_if.* scripts for each configured interface as is done in rc.network. This is needed for devices like the Aironet wireless NIC's, because you need to set some device options, .e.g. SSID or ad-hoc/infrastructure mode, before you can begin talking to the remote end. >How-To-Repeat: Try using an Aironet PCCARD where the default device options are not usable. >Fix: Apply this patch which makes pccard_ether look for a start_if.* script for pre-ifconfig device settings in the same manner as rc.network. --- pccard_ether.orig Wed Jul 5 19:24:19 2000 +++ pccard_ether Wed Jul 5 19:26:27 2000 @@ -23,6 +23,9 @@ [Nn][Oo] | '') ;; [Dd][Hh][Cc][Pp]) + if [ -r /etc/start_if.${interface} ]; then + . /etc/start_if.${interface} + fi if [ -r /sbin/dhclient ]; then if [ -s /var/run/dhclient.pid ]; then kill `cat /var/run/dhclient.pid` @@ -40,6 +43,9 @@ fi ;; *) + if [ -r /etc/start_if.${interface} ]; then + . /etc/start_if.${interface} + fi ifconfig ${interface} ${pccard_ifconfig} $* ;; esac >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007052339.TAA02985>