Date: 24 Jul 2001 23:32:38 +0300 From: Poku <reissell@cc.helsinki.fi> To: j mckitrick <jcm@FreeBSD-uk.eu.org> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: init hangs leaving single user mode Message-ID: <87g0bm83vd.fsf@mursu.pesa.fi> In-Reply-To: j mckitrick's message of "Mon, 16 Jul 2001 18:22:57 %2B0100" References: <20010716182257.B49894@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
j mckitrick <jcm@FreeBSD-uk.eu.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87g0bm83vd.fsf>
