Date: Mon, 26 Feb 2001 13:35:17 -0500 From: The Babbler <bts@babbleon.org> To: freebsd-mobile@freebsd.org Subject: Re: 4.x pccardd question, 3.x cvsup question, etc. Message-ID: <3A9AA1E5.45E87E96@babbleon.org>
next in thread | raw e-mail | index | archive | help
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 <bts@babbleon.org>
> Organization: None to speak of
> To: Allen Landsidel <alandsidel@venon.com>,
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A9AA1E5.45E87E96>
