Date: Sat, 7 Jul 2001 16:08:16 -0400 From: Peter Radcliffe <pir@pir.net> To: freebsd-mobile@FreeBSD.ORG Subject: Re: ifconfig wireless card options and DHCP Message-ID: <20010707160816.C27611@pir.net> In-Reply-To: <20010707160606.B27611@pir.net>; from pir@pir.net on Sat, Jul 07, 2001 at 04:06:07PM -0400 References: <20010707151139.A27611@pir.net> <200107071932.f67JWSk27648@bunrab.catwhisker.org> <20010707160606.B27611@pir.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010707160816.C27611>
