[comp.sys.att] The mystery 4th LED

jbm@uncle.UUCP (John B. Milton) (12/14/87)

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 <stdio.h>
#include <sys/syslocal.h>

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 :)