From owner-freebsd-mobile Sun Aug 30 13:08:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA27817 for freebsd-mobile-outgoing; Sun, 30 Aug 1998 13:08:11 -0700 (PDT) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from davinci.isds.duke.edu (davinci.isds.duke.edu [152.3.22.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA27810 for ; Sun, 30 Aug 1998 13:08:07 -0700 (PDT) (envelope-from sto@stat.Duke.EDU) Received: from cayenne.isds.duke.edu (cayenne.isds.duke.edu [152.3.22.11]) by davinci.isds.duke.edu (8.8.8/8.8.8) with ESMTP id QAA09014 for ; Sun, 30 Aug 1998 16:07:10 -0400 (EDT) Received: (from sto@localhost) by cayenne.isds.duke.edu (8.8.8/8.8.8) id QAA21222; Sun, 30 Aug 1998 16:07:09 -0400 (EDT) Date: Sun, 30 Aug 1998 16:07:09 -0400 (EDT) Message-Id: <199808302007.QAA21222@cayenne.isds.duke.edu> From: "Sean O'Connell" To: FreeBSD mobile Subject: /etc/pccard_ether X-Mailer: VM 6.33 under Emacs 19.34.2 X-Organization: Institute of Statistics and Decision Sciences, Duke University Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi All- I realize this probably picking a nit, but I was unable to get /etc/pccard_ether (in -stable) to work with the pccard_ifconfig option. I have put together a quickie patch that is pretty much a direct hack (stolen entirely from the PAO pccard_ether for 2.2.6-RELEASE by HOSOKAWA, Tatsumi ). This fixes the handling of properly inserting the ifconfig_$interface into the script. Otherwise it falls flat on it's face. I hope this patch (unified diff) helps some folks: --- pccard_ether.bak Sun Aug 30 15:58:13 1998 +++ pccard_ether Sun Aug 30 15:57:47 1998 @@ -10,8 +10,14 @@ . /etc/rc.conf fi +# catch the interface name (rest are additional args) +interface=$1 +shift + if [ "x$pccard_ifconfig" != "xNO" ] ; then - if [ "x$pccard_ifconfig" = "xDHCP" ] ; then + # get ifconfig line for the interface + eval ifconfig_args=\$ifconfig_${interface} + if [ "x$ifconfig_args" = "xDHCP" ] ; then if [ -f /usr/local/sbin/dhclient ] ; then if [ -s /var/run/dhclient.pid ] ; then kill `cat /var/run/dhclient.pid` @@ -22,9 +28,7 @@ echo "DHCP client software not available (isc-dhcp2)" fi else - interface=$1 - shift - ifconfig $interface $pccard_ifconfig $* + ifconfig $interface $ifconfig_args $* fi fi ------------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message