Skip site navigation (1)Skip section navigation (2)
Date:      22 Oct 1999 11:00:31 -0400
From:      "Robert V. Baron" <rvb@cs.cmu.edu>
To:        mobile@freebsd.org, current@freebsd.org
Subject:   /etc/pccard_ether "improvement"
Message-ID:  <yzsln8vcueo.fsf@sicily.odyssey.cs.cmu.edu>

next in thread | raw e-mail | index | archive | help

I'm going to be using either a wavelanII (wi0) or a 3com (ep0)
on my laptop.  I'd like to have the rc.conf's specify how to 
configure each.  Then I'd like to have the one that is in the
machine to be configured.  In the current /etc/ether_pccard there
is $pccard_ifconfig which is used as args to ifconfig if 
$pccard_ifconfig is not NO.  But I need a different ifconfig for
each device.  So I'd like to propose fixing pccard_ether as:
--- /etc/pccard_ether.BAK       Mon Oct  4 10:38:32 1999
+++ /etc/pccard_ether   Mon Oct  4 11:09:18 1999
@@ -35,7 +35,14 @@
        else
                interface=$1
                shift
-               ifconfig $interface $pccard_ifconfig $*
+               if [ "x$pccard_ifconfig" = "xYES" ] ; then
+                       eval ifconfig_args=\$ifconfig_${interface}
+                       if [ -n "${ifconfig_args}" ] ; then
+                               ifconfig ${interface} ${ifconfig_args} $*
+                       fi
+               else
+                       ifconfig $interface $pccard_ifconfig $*
+               fi
        fi
 fi
This way pccard devices are initialized just like other devices


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yzsln8vcueo.fsf>