From adrian@mail.esolstice.com  Wed Jul  5 16:36:33 2000
Return-Path: <adrian@mail.esolstice.com>
Received: from esummer.esolstice.com (esummer.esolstice.com [209.145.65.15])
	by hub.freebsd.org (Postfix) with ESMTP id 7D87C37B7C4
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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
Sender: adrian@mail.esolstice.com
Reply-To: adrian@ubergeeks.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: start_if.* hooks for pccard_ether
X-Send-Pr-Version: 3.2

>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:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 05 16:40:00 PDT 2000
>Closed-Date:    Wed Nov 14 23:03:01 MST 2001
>Last-Modified:  Wed Nov 14 23:03:36 MST 2001
>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:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Jul 6 04:01:36 PDT 2000 
Responsible-Changed-Why:  
Over to the pccard maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19719 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Wed Nov 14 23:03:01 MST 2001 
State-Changed-Why:  
It appears that it does now. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19719 
>Unformatted:
