From owner-freebsd-mobile Mon Jun 17 10:50:30 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from x20.gugod.org (134.c210-85-11.ethome.net.tw [210.85.11.134]) by hub.freebsd.org (Postfix) with ESMTP id DBDFA37B400 for ; Mon, 17 Jun 2002 10:50:21 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by x20.gugod.org (Postfix) with ESMTP id 078B08D14; Tue, 18 Jun 2002 01:50:20 +0800 (CST) Date: Tue, 18 Jun 2002 01:50:08 +0800 (CST) Message-Id: <20020618.015008.59554913.gugod@gugod.org> To: tony@saign.com Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: start_if.wi0?? From: Kang-min Liu In-Reply-To: <000001c215bb$0bf098e0$1401a8c0@frankenmobl> References: <000001c215bb$0bf098e0$1401a8c0@frankenmobl> X-Mailer: Mew version 3.0.54 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_Jun_18_01:50:08_2002_635)--" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ----Security_Multipart(Tue_Jun_18_01:50:08_2002_635)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: "Tony Saign" Subject: start_if.wi0?? Date: Sun, 16 Jun 2002 21:54:21 -0700 > Anyone have an example of a script to connect to 2 different nets? > I've been playing around with it without success! > > Running 4.6 -stable and MiniPCI Intersil 802.11b card. here is my script. every time I mv to a new network, I change the content of /etc/wi_where to match what I need. enjoy it. :) ---8<--- wi_where=`cat /etc/wi_where` case ${wi_where} in [Hh][Oo][Mm][Ee]) ifconfig_wi0="inet 192.168.1.3 netmask 0xfffffff0 wepmode on wepkey xxxxxx channel 3 ssid XXXXXX media auto" defaultrouter="192.168.1.1" /bin/cp -f /etc/resolv.conf.home /etc/resolv.conf ;; [Nn][Tt][Uu]) ifconfig wi0 wepmode on wepkey xxxxxx media auto ifconfig_wi0="dhcp" ;; [Aa][Uu][Tt][Oo]) ifconfig wi0 wepmode off media auto ifconfig_wi0="dhcp" ;; esac --->8--- ----Security_Multipart(Tue_Jun_18_01:50:08_2002_635)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQA9DiFTt9iYDlxKbHARAkGhAKCA2nAvCCEmT8U7NdPrwd7RGp+pWwCfYTU5 YaXYQxg793IYXdpFWlDMqAo= =AVtz -----END PGP SIGNATURE----- ----Security_Multipart(Tue_Jun_18_01:50:08_2002_635)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message