From owner-freebsd-questions Sat Jan 18 1:17:49 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83A9037B401 for ; Sat, 18 Jan 2003 01:17:47 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 25F4F43F1E for ; Sat, 18 Jan 2003 01:17:46 -0800 (PST) (envelope-from alexander.pohoyda@gmx.net) Received: (qmail 12385 invoked by uid 0); 18 Jan 2003 09:17:44 -0000 Received: from p508be8ab.dip.t-dialin.net (HELO oak.pohoyda.family) (80.139.232.171) by mail.gmx.net (mp014-rz3) with SMTP; 18 Jan 2003 09:17:44 -0000 Received: from oak.pohoyda.family (oak.pohoyda.family [127.0.0.1]) by oak.pohoyda.family (8.12.3/8.12.6) with ESMTP id h0I9HjDr000269 for ; Sat, 18 Jan 2003 10:17:45 +0100 (CET) (envelope-from apog@oak.pohoyda.family) Received: (from apog@localhost) by oak.pohoyda.family (8.12.3/8.12.3/Submit) id h0I9HiUa000266; Sat, 18 Jan 2003 10:17:44 +0100 (CET) Date: Sat, 18 Jan 2003 10:17:44 +0100 (CET) Message-Id: <200301180917.h0I9HiUa000266@oak.pohoyda.family> From: Alexander Pohoyda To: freebsd-questions@freebsd.org Subject: 5.0-RC3, /etc/pccard_ether incompatible change. MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, A snippet from my /etc/rc.conf: pccard_enable="YES" ifconfig_wi0="inet 10.0.0.2" ifconfig_ed1="dhcp" On 4.5-RC3 it works as I expected, each interface will get it's own value for ifconfig command. On 5.0-RC3, however, this does not happen. /etc/pccard_ether has been changed this way: case ${pccard_ifconfig} in [Nn][Oo] | '') + expr "...." : ".*${interface}" > /dev/null || exit 0 ;; *) # Backward compatible eval ifconfig_${interface}=\${pccard_ifconfig} ;; esac Default value of ${pccard_ifconfig} is "NO", so the script exits too early now. If I set this varibale, I will get that value for each and every interface. Right? I would suggest something like this (pseudo code): case ${pccard_ifconfig} in [Nn][Oo] | '') expr "...." : ".*${interface}" > /dev/null || exit 0 ;; *) # Backward compatible + eval ifconfig_${interface}=\$pccard_ifconfig_${interface} ;; esac Am I abusing the featute? What is a correct way to deal with this effect? For a time being I have commented out that line and it works OK for me. TIA -- Alexander Pohoyda To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message