Subject: HEADS UP: New configuration file format for envsys/envstat
To: None <current-users@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 10/07/2007 06:32:17
Hey,

I just committed the changes I've been working the past week,
that is a new configuration file format for the envsys framework.

The envstat(8) command can be used to set or remove properties
in sensors with this configuration file. It has the following syntax:

it0 {
	# VCORE_A
	sensor3 { description = "CPU Temperature"; rfact = 1800000; }

	# VCORE_B = +3.3V 
	sensor4 {
		critical-max = 3.800;
		rfact = 2000000;
		description = "+3.3V";
	}

	# +5.5V
	sensor5 { critical-min = 60F; rfact = 3490000; }

	# +12V
	sensor6 { critical-max = 70C; rfact = 8500000; }
}

Multiple devices and multiple properties for sensors can be set
easily now, they are grouped by device or sensor blocks.

To remove all those properties you can use the -S flag:

$ envstat -S

Or just use the new rc.d script for setting/unsetting all them.

If you need more info, please read the envsys.conf(5) or
envstat(8) manual pages.

Let me know if you have any problem with all that stuff...

Have fun!

-- 
Juan Romero Pardines	- The NetBSD Project
http://plog.xtrarom.org	- NetBSD/pkgsrc news in Spanish