Subject: Re: APCUPSD
To: dkwok <dkwok@iware.com.au>
From: Luke Mewburn <lukem@wasabisystems.com>
List: port-i386
Date: 03/26/2001 20:04:25
On Mon, Mar 26, 2001 at 07:52:34PM +1000, dkwok wrote:
> After installing from pkgsrc. 
> 
> The message says "With most APC cables you must put a "local" flag in
> /etc/ttys for
>        the port you connect your UPS to, and run "ttyflags -a" to turn it
>        on the first time."
> 
> What does it means? I have a look at the /etc/ttys file and do not
> understand what to do with it? Any pointer?

In /etc/ttys, for the tty port (e.g, tty00) that you've got the UPS
attached to, add "local" to the end of the relevant line.
E.g, change something like:
	tty01   "/usr/libexec/getty std.9600"   unknown off secure
to
	tty01   "/usr/libexec/getty std.9600"   unknown off secure local

Then you need to run as root:
	kill -1 1
	ttyflags -a
(the kill -1 1 might be optional; shouldn't hurt though)