From owner-freebsd-bugs Wed Jul 5 16:40: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id DF25D37BAD9 for ; Wed, 5 Jul 2000 16:40:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA01531; Wed, 5 Jul 2000 16:40:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from esummer.esolstice.com (esummer.esolstice.com [209.145.65.15]) by hub.freebsd.org (Postfix) with ESMTP id 7D87C37B7C4 for ; Wed, 5 Jul 2000 16:36:29 -0700 (PDT) (envelope-from adrian@mail.esolstice.com) Received: from cluebie.esolstice.int (an-fw.esolstice.com [208.241.63.212]) by esummer.esolstice.com (8.9.3/8.9.3) with ESMTP id TAA58084 for ; Wed, 5 Jul 2000 19:40:17 -0400 (EDT) (envelope-from adrian@mail.esolstice.com) Received: (from adrian@localhost) by cluebie.esolstice.int (8.9.3/8.9.3) id TAA02985; Wed, 5 Jul 2000 19:39:32 -0400 (EDT) (envelope-from adrian@mail.esolstice.com) Message-Id: <200007052339.TAA02985@cluebie.esolstice.int> Date: Wed, 5 Jul 2000 19:39:32 -0400 (EDT) From: adrian@ubergeeks.com Reply-To: adrian@ubergeeks.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/19719: start_if.* hooks for pccard_ether Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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