From owner-freebsd-stable Tue Jul 24 13:40:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from no-spam.it.helsinki.fi (NO-SPAM.it.helsinki.fi [128.214.205.34]) by hub.freebsd.org (Postfix) with ESMTP id 5B65D37B406 for ; Tue, 24 Jul 2001 13:40:44 -0700 (PDT) (envelope-from reissell@cc.helsinki.fi) Received: from mursu.pesa.fi (root@sirppi.helsinki.fi [128.214.205.27]) by no-spam.it.helsinki.fi (8.11.4/8.11.4-SPAMmers-sod-off) with ESMTP id f6OKed123367; Tue, 24 Jul 2001 23:40:39 +0300 (EEST) Received: (from poku@localhost) by mursu.pesa.fi (8.11.2/8.11.1) id f6OKWcF27471; Tue, 24 Jul 2001 23:32:38 +0300 (EEST) (envelope-from poku@mursu.pesa.fi) To: j mckitrick Cc: freebsd-stable@FreeBSD.ORG Subject: Re: init hangs leaving single user mode References: <20010716182257.B49894@dogma.freebsd-uk.eu.org> From: Poku Date: 24 Jul 2001 23:32:38 +0300 In-Reply-To: j mckitrick's message of "Mon, 16 Jul 2001 18:22:57 +0100" Message-ID: <87g0bm83vd.fsf@mursu.pesa.fi> Lines: 44 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG j mckitrick writes: > OK, here you go... > > This bug is becoming rather inconvenient. I have a Toshiba 4010CDT laptop > with the Noteworthy modem that comes with it, and a Kingston KNE-PCM/T > network card. I use the default pccard.conf settings. > > The problem: > Shutdown to single-user, then exit and restart multi-user. I had hangs with a 3Com ethernet PC-card when going single-user and back. I solved this by putting a little powercard.sh script in /usr/local/etc/rc.d/. The script just powers down the PC-card on shutduwn. Or puts the lights back on on powerup. No hangs since then. Here's the script: ------------8<>8---------------- #!/bin/sh case $1 in start) /usr/local/libexec/pccardq | \ awk -F '~' '$5 == "inactive" { printf("pccardc power %d 1", $1); }' \ | sh \ && echo -n ' pccardPower' ;; stop) /usr/local/libexec/pccardq | \ awk -F '~' '$5 == "filled" && $4 ~ /ep/ \ { printf("pccardc power %d 0", $1); }' \ | sh \ && echo -n ' pccardPower' ;; *) echo "usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac ------------8<>8---------------- I forget where I got the pccardq program. Somewhere in the /usr/src tree. Maybe in a pccard[d|c] related directory. HTH. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message