Xref: utzoo unix-pc.general:90 comp.sys.att:1818
Path: utzoo!mnetor!uunet!ukma!cbosgd!gwspc!cbcsta!n8emr!uncle!jbm
From: jbm@uncle.UUCP (John B. Milton)
Newsgroups: unix-pc.general,comp.sys.att
Subject: The mystery 4th LED
Message-ID: <203@uncle.UUCP>
Date: 14 Dec 87 02:24:28 GMT
Reply-To: jbm@uncle.UUCP (John B. Milton)
Organization: Just me and my computer, Columbus Ohio
Lines: 29


As some of you noticed who have had your UNIXpc apart, there are not 3, but 4
LEDs on the motherboard near the vents on the left. There were a bunch of
messages a while ago about what each of these means. For fun I was reading
through section 2 of the users manual and found syslocal (2). Some very neat and
dangerous stuff here. Surprise surprise there is a cmd for syslocal called
SYSL_LED to turn on and off the "user LED". You don't even have to super-user.
I have no idea what possible use this could be. I can remember a time back in
the old 1802 days when it was though...

Here is a quicky utility to usr it.

#include 
#include 

int main (argc,argv)
int argc;
char *argv[];
{
	if (argc<2) {
		fprintf(stderr,"Usage: %s 0|1\n",argv[0]);
		exit(1);
	} else
		syslocal(SYSL_LED,atoi(argv[1]));
}

-- 
John Bly Milton IV, jbm@uncle.UUCP, {ihnp4|cbosgd}!n8emr!uncle!jbm
home: (614) 294-4823, work: (614) 424-7677, FLAME via email :)