From owner-freebsd-mobile Tue May 30 9:12:47 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from cwb.pacific.net.hk (cwb.pacific.net.hk [202.14.67.92]) by hub.freebsd.org (Postfix) with ESMTP id BEC7837B6E1 for ; Tue, 30 May 2000 09:12:39 -0700 (PDT) (envelope-from alexkwan@pacific.net.hk) Received: from kwaifong.pacific.net.hk (kwaifong.pacific.net.hk [202.14.67.7]) by cwb.pacific.net.hk with ESMTP id AAA07597; Wed, 31 May 2000 00:12:38 +0800 (HKT) Received: from alexkwan (ppp157.dyn29.pacific.net.hk [202.64.29.157]) by kwaifong.pacific.net.hk with SMTP id AAA22670; Wed, 31 May 2000 00:12:37 +0800 (HKT) Message-ID: <003a01bfca51$ec162820$9d1d40ca@alexkwan> From: "Alex Kwan" To: "Mitsuru IWASAKI" Cc: References: <000f01bfca4c$9d8493e0$9d1d40ca@alexkwan><20000531003815T.iwasaki@jp.FreeBSD.org><002501bfca4e$978ca520$9d1d40ca@alexkwan> <20000531010048C.iwasaki@jp.FreeBSD.org> Subject: Re: Is pccard_ether a shell script (another question) Date: Wed, 31 May 2000 00:12:57 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! Mitsuru, I am sorry that I asked this question too much times, but where to state the ip and netmask of ep0_alias0 and ep0_alias1, is rc.conf? thanks > > Hi! Mitsuru, > > > > How to add following rc.conf entries to pccard_ether: > > ifconfig_ep0_alias0="inet 192.168.1.10 netmask 255.255.255.0" > > ifconfig_ep0_alais0="inet 192.168.1.11 netmask 255.255.255.0" > > Like this? > > --- etc/pccard_ether- Sun May 14 19:53:18 2000 > +++ etc/pccard_ether Wed May 31 00:57:03 2000 > @@ -41,6 +41,18 @@ > ;; > *) > ifconfig ${interface} ${pccard_ifconfig} $* > + # Check to see if aliases need to be added > + alias=0 > + while : > + do > + eval ifx_args=\$ifconfig_${interface}_alias${alias} > + if [ -n "$ifx_args" ]; then > + ifconfig $interface $ifx_args alias > + alias=`expr ${alias} + 1` > + else > + break; > + fi > + done > ;; > esac > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message