From owner-freebsd-current Fri Oct 22 8: 1:31 1999 Delivered-To: freebsd-current@freebsd.org Received: from sicily.odyssey.cs.cmu.edu (SICILY.ODYSSEY.CS.CMU.EDU [128.2.185.138]) by hub.freebsd.org (Postfix) with SMTP id E86EB150C9; Fri, 22 Oct 1999 08:01:17 -0700 (PDT) (envelope-from rvb+@sicily.odyssey.cs.cmu.edu) To: mobile@freebsd.org, current@freebsd.org Subject: /etc/pccard_ether "improvement" From: "Robert V. Baron" Date: 22 Oct 1999 11:00:31 -0400 Message-ID: Lines: 26 X-Mailer: Gnus v5.5/Emacs 20.3 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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