From owner-freebsd-mobile Sat Jul 7 13: 8:21 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from moek.pir.net (moek.pir.net [130.64.1.215]) by hub.freebsd.org (Postfix) with ESMTP id A568B37B403 for ; Sat, 7 Jul 2001 13:08:17 -0700 (PDT) (envelope-from pir@pir.net) Received: from pir by moek.pir.net with local (Exim) id 15IyNF-0007Ye-00 for freebsd-mobile@FreeBSD.ORG; Sat, 07 Jul 2001 16:08:17 -0400 Date: Sat, 7 Jul 2001 16:08:16 -0400 From: Peter Radcliffe To: freebsd-mobile@FreeBSD.ORG Subject: Re: ifconfig wireless card options and DHCP Message-ID: <20010707160816.C27611@pir.net> Reply-To: freebsd-mobile@freebsd.org Mail-Followup-To: freebsd-mobile@FreeBSD.ORG References: <20010707151139.A27611@pir.net> <200107071932.f67JWSk27648@bunrab.catwhisker.org> <20010707160606.B27611@pir.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010707160606.B27611@pir.net>; from pir@pir.net on Sat, Jul 07, 2001 at 04:06:07PM -0400 X-fish: < X-Copy-On-Listmail: Please do NOT Cc: me on list mail. Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In some further testing I realised one thing was missing - matching on dhcp with extra arguments to kill the dhclient instance properly on stop; ------------------------------------------------------------------- *** /etc/pccard_ether.orig Sat Jul 7 13:17:54 2001 --- /etc/pccard_ether Sat Jul 7 15:20:44 2001 *************** *** 66,75 **** --- 66,91 ---- case ${ifconfig_args} in [Nn][Oo] | '') ;; + + [Dd][Hh][Cc][Pp][\ \ ]*) + # Do we have ifconfig arguments to do before we DHCP + # the interface ? + dhcp_ifconfig_args=`echo "${ifconfig_args}" \ + | sed 's/^[Dd][Hh][Cc][Pp][\ \ ]*//'` + + if [ "x$dhcp_ifconfig_args" != "x" ]; then + ifconfig ${interface} ${dhcp_ifconfig_args} $* + fi + + # Start up the DHCP client program + start_dhcp + ;; + [Dd][Hh][Cc][Pp]) # Start up the DHCP client program start_dhcp ;; + *) # Do the primary ifconfig if specified ifconfig ${interface} ${ifconfig_args} $* *************** *** 139,145 **** case ${ifconfig_args} in [Nn][Oo] | '') ;; ! [Dd][Hh][Cc][Pp]) # Stop the DHCP client for this interface stop_dhcp ;; --- 155,161 ---- case ${ifconfig_args} in [Nn][Oo] | '') ;; ! [Dd][Hh][Cc][Pp]|[Dd][Hh][Cc][Pp][\ \ ]*) # Stop the DHCP client for this interface stop_dhcp ;; *************** *** 183,185 **** --- 199,205 ---- esac ;; esac + + if [ -x "$pccard_ether_local" ]; then + $pccard_ether_local $interface $startstop $@ + fi ------------------------------------------------------------------- -- pir pir@pir.net pir@net.tufts.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message