Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Dec 2002 21:18:58 -0800
From:      richard childers <fscked@pacbell.net>
To:        freebsd-mobile@freebsd.org
Subject:   Trivial hack for pccardd(8)
Message-ID:  <3DED9042.A7A6B6C3@pacbell.net>

next in thread | raw e-mail | index | archive | help
I've been developing a standard FreeBSD installation, designed to
run equally well on laptops and servers, using the same basic
layout and modules.

Because I do most of my development on a laptop (on top of the
washing machine in the basement, if you must know :-), and I
spend a lot of time rebooting to test the installation sequence
(IE, I have installed FreeBSD about 500 times in the past six
weeks), it came to my attention that a lot of my services didn't
boot right because when they came up, the pccardd(8) was still
initializing the PCMCIA card, and the network was not yet up.

The pccardd script (rc.pccard?) and the network script
(rc.network) are only a few lines apart in /etc/rc. The fix was
to test dmesg output for devices associated with a PCMCIA bus,
and if any were detected, to assume it was  laptop and sleep a
few extra seconds while pccardd(8) did its stuff (actually, about
30 seconds, although I coul d get by with 15 seconds, maybe).

I'm curious if anyone else has done this; and why such a
common-sense thing never made it into the FreeBSD release. What
am I missing?

Yes, I know about rc.mobile; it's been around for a few years,
there's an article on it by a chap in Germany. I like the concept
but not the pseudo-GUI; the idea fits well into the FreeBSD
paradigm, I think, but the implementation was Linux-derived and
perhaps not easily integrated into the BSD boot-time reality (an
interactive boot shellscript? how does the system boot when no
one is present?).

Don't tell me, let me guess; rc.mobile is part of FreeBSD 5.0?


Thanks,

-- richard

--

Richard A Childers/KG6HAC -- Senor UNIX System & Network
Administrator
"Dont forget nothing." Maj Rogers, standing orders, 1st Ranger
Bn, 1759



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?3DED9042.A7A6B6C3>