From owner-freebsd-mobile Mon Feb 26 11:32: 6 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id DD9B237B401 for ; Mon, 26 Feb 2001 11:32:02 -0800 (PST) (envelope-from bts@babbleon.org) Received: from babbleon.org ([66.26.250.181]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Mon, 26 Feb 2001 13:39:17 -0500 Message-ID: <3A9AA1E5.45E87E96@babbleon.org> Date: Mon, 26 Feb 2001 13:35:17 -0500 From: The Babbler Organization: None to speak of X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Subject: Re: 4.x pccardd question, 3.x cvsup question, etc. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I mis-spelled the list address, but thought this might be of some interest to the list in general. > Subject: Re: 4.x pccardd question, 3.x cvsup question, etc.. > Date: Sun, 25 Feb 2001 22:02:20 -0500 > From: The Babbler > Organization: None to speak of > To: Allen Landsidel , > freebsd-modbile@freebsd.org > References: <4.3.2.7.2.20010223221642.00c559f0@64.7.7.83> <3A974FB8.BC805047@babbleon.org> > > I worked on this with Brian Dean. In fact, he did all the hard stuff. > I was pretty much just along for the ride at that point. (At this point > I think I'm gaining minor competence with FreeBSD, but when we set this > up I didn't have a clue.) > > Here's what we did . . . > > We created a /usr/local/etc/rc.d/00_netstart.sh like this . . . > it waits for the two device and configures them when they are up. > > #!/bin/sh > > if [ "$#" -eq 0 ]; then > parm=start; > else > parm=$1; > shift; > fi > > while (! ifconfig ep0 ); do > sleep 1 > done > > while (! ifconfig ed0 ); do > sleep 1 > done > > case $parm in > [Ss][Tt][Aa][Rr][Tt]) > . /etc/defaults/rc.conf > /etc/netstart > ;; > *) > ;; > esac > > Along with there, the rc.conf.local has: > > gateway_enable="YES" > firewall_enable="YES" > firewall_script=/etc/rc.firewall.local > natd_enable="YES" > natd_interface="ep0" > natd_flags="-dynamic" > > And the /etc/rc.firewall.local has (at the top): > > if [ -r /etc/defaults/rc.conf ]; then > . /etc/defaults/rc.conf > source_rc_confs > elif [ -r /etc/rc.conf ]; then > . /etc/rc.conf > fi > > oif="ep0" > oparms=`/sbin/ifconfig ${oif} | /usr/bin/grep inet | /usr/bin/cut > -f2,4,6 -d' '` > oip=`/bin/echo "${oparms}" | cut -f1 -d' '` > onet="${oip}" > omask=`/bin/echo "${oparms}" | cut -f2 -d' '` > obcast=`/bin/echo "${oparms}" | cut -f3 -d' '` > > iif="ed0" > iparms=`/sbin/ifconfig ${iif} | /usr/bin/grep inet | /usr/bin/cut > -f2,4,6 -d' '` > iip=`/bin/echo "${iparms}" | cut -f1 -d' '` > inet="${iip}" > imask=`/bin/echo "${iparms}" | cut -f2 -d' '` > ibcast=`/bin/echo "${iparms}" | cut -f3 -d' '` > > Hopefully that's enough to get you going. > -- "Brian, the man from babble-on" bts@babbleon.org Brian T. Schellenberger http://www.babbleon.org Support http://www.eff.org. Support decss defendents. Support http://www.programming-freedom.org. Boycott amazon.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message