From owner-freebsd-mobile Tue Dec 3 21:18:56 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93F5537B401 for ; Tue, 3 Dec 2002 21:18:54 -0800 (PST) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B43A43ECD for ; Tue, 3 Dec 2002 21:18:54 -0800 (PST) (envelope-from fscked@pacbell.net) Received: from pacbell.net ([64.171.190.217]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0H6K00232XFH23@mta5.snfc21.pbi.net> for freebsd-mobile@freebsd.org; Tue, 03 Dec 2002 21:18:53 -0800 (PST) Date: Tue, 03 Dec 2002 21:18:58 -0800 From: richard childers Subject: Trivial hack for pccardd(8) To: freebsd-mobile@freebsd.org Message-id: <3DED9042.A7A6B6C3@pacbell.net> MIME-version: 1.0 X-Mailer: Mozilla 4.79 [en] (WinNT; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en 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 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