From owner-freebsd-mobile Tue May 30 9: 1: 1 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 760C837B6E1 for ; Tue, 30 May 2000 09:00:53 -0700 (PDT) (envelope-from iwasaki@jp.FreeBSD.org) Received: from localhost (isdn54.imasy.or.jp [202.227.24.246]) by tasogare.imasy.or.jp (8.10.1+3.3W/3.7W-tasogare/smtpfeed 1.04) with ESMTP id e4UG0oR96469; Wed, 31 May 2000 01:00:51 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) To: alexkwan@pacific.net.hk Cc: iwasaki@jp.FreeBSD.org, freebsd-mobile@FreeBSD.ORG Subject: Re: Is pccard_ether a shell script (another question) In-Reply-To: <002501bfca4e$978ca520$9d1d40ca@alexkwan> References: <000f01bfca4c$9d8493e0$9d1d40ca@alexkwan> <20000531003815T.iwasaki@jp.FreeBSD.org> <002501bfca4e$978ca520$9d1d40ca@alexkwan> X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000531010048C.iwasaki@jp.FreeBSD.org> Date: Wed, 31 May 2000 01:00:48 +0900 From: Mitsuru IWASAKI X-Dispatcher: imput version 20000228(IM140) Lines: 31 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > 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