to compile therm.c and therm.h into therm.o as a module
gcc -O -DMODULE -D__KERNEL__ -m6 -c therm.c

To load:
cd /dev
mknod -m 666 /dev/temperature c 10 131

This will create device node in /dev directory

Then 
insmod -v [-f] therm.o	

To program the thermostat's temperature setting:
set_therm temperature(C), e.g. set_therm 45 42

Running set_therm without parameters will report current setting.

Once programmed, remove the device driver:
rmmod therm

The setting will remain valid till changed again.


Additionally the current temperature and thermostate setting can be monitored
with a 0.5C resolution by reading /proc/therm entry, e.g.

cat /proc/therm

For compatibility with WDT501 chip driver, the /dev/temperature can be read,
it will return 1 byte with current temperature in Fahrenheit (or cubits ;-).

For people, who do not want to hear the fan - there is a utility fan_ctrl.
Syntax: fan_ctrl ON or OFF.
Run it on your own risk! I tried to run the Netwinder vertically, on the stand
(stand is important!), in a 20C room with no fan, seem OK. 

woody@corelcomputer.com
    