Subject: Re: NODEVMTIME kernel option gone, replaced with mount flag
To: None <current-users@netbsd.org>
From: Ken Hornstein <kenh@cmf.nrl.navy.mil>
List: current-users
Date: 12/02/1998 00:13:43
>and my /etc/apm/line script is:
>
>#!/bin/sh
>
>mount -u /
>mount -u /
>atactl wd0 setidle 0

As a number of people pointer out, this is wrong, which is what
I get for typing it in by hand.

Actually, my real /etc/apm/line script looks like this:

#!/bin/sh

mount -u /
mount -u /usr

if atactl wd0 checkpower | grep -q Active; then
	atactl wd0 setidle 0
else
	atactl wd0 setstandby 0
fi

Because of what seems to a bug in my disk drive (you can't transition to
standby to idle without it getting mildly confused.  It recovers, but
I don't like the error message :-/).

--Ken