From owner-freebsd-questions Tue Jan 4 15: 0:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from server.baldwin.cx (ric-40.freedomnet.com [198.240.105.40]) by hub.freebsd.org (Postfix) with ESMTP id 73FA414CB8 for ; Tue, 4 Jan 2000 15:00:12 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from john.baldwin.cx (john [10.0.0.2]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id RAA45610; Tue, 4 Jan 2000 17:59:50 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-Id: <200001042259.RAA45610@server.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 04 Jan 2000 17:59:49 -0500 (EST) From: John Baldwin To: Marc Schneiders Subject: RE: automatic conf of pcmcia ethernet Cc: freebsd-questions@FreeBSD.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 04-Jan-00 Marc Schneiders wrote: > On Tue, 4 Jan 2000, John Baldwin wrote: > >> >> On 03-Jan-00 Marc Schneiders wrote: >> > I've installed FreeBSD (4.0) on an old laptop (Toshiba 486 SX 33 with >> > 4 MB, yeah). I edited /etc/rc.conf: >> > >> > ... >> > pccard_ifconfig="YES" >> > ... >> > network_interfaces="ed0 lo0" >> > ifconfig_ed0="inet 10.10.10.11 netmask 255.255.255.0" >> >> Use ifconfig_pccard instead of ifconfig_ed0. Also, you can go ahead and >> take >> ed0 out of network_interfaces. >> > > Tried that, but alas. The messages suggest that it is impossible, so > it seems, as the card is not detected quick enough: > > Jan 4 18:53:36 baby /kernel: lpt0: Interrupt-driven port > Jan 4 18:53:36 baby /kernel: Mounting root from ufs:/dev/wd0s1a > Jan 4 18:53:36 baby /kernel: pccard: card inserted, slot 0 > Jan 4 18:53:35 baby pccardd[45]: Ether=00:00:51:c6:00:00 > Jan 4 18:53:40 baby /kernel: ed1 at port 0x300-0x31f irq 3 slot 0 on > pccard0 > Jan 4 18:53:41 baby /kernel: ed1: address 00:c0:0c:03:91:66, type > NE2000 (16 bit) > Jan 4 18:53:49 baby pccardd[45]: pccardd started > > During the 4-5 seconds it takes to find the card the network setup > from rc.conf is already over. Appending it at the end in 'local' setup > seems to be the only way to do it. > > > Thanks for all the help! It does work, btw. ifconfig(8) is called by pccard when your card is inserted. If you look in pccard.conf, when your card is inserted, one of the insert commands runs /etc/pccard_ether, which is a shell script which sources /etc/defaults/rc.conf and then runs ifconfig to configure your network card. That way you can (in theory, I find it works about 60% of the time) pull your network card out, re-insert it and it will reconfigure it on the fly. Do you have a /etc/pccard.conf? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message