@Woodsman:
I spent all last night and my entire day today Googling scripts related to i8k, fan speed, etc. The only thing I could find that came close was the one I used as a template for the "script" I posted. My attempts to tweak it demonstrate my bash scripting ignorance. Oh well, I'll learn.
I spent awhile in /etc/sensors3.conf trying to identify each chip by name and learn its function, but then I found a program called i8kmon which runs as a daemon and controls fan speed based on sensor readings, so I could more easily go that route. Fact is that between GKrellM and hddtemp I have a pretty good sense of when I'm running hot and I'd rather be able to toggle the fan manually.
Thank you for pointing out the misuse of sudo. Late night error in logic based on the fact that the executable binary is in /usr.
Aaaanyway, Shador of SalixOS was kind enough to bang-out a working script for me. Because I would rather not be a useless leech, I plan to study this script using the links offered here until I understand exactly why it works. Thanks for your input, as always. Slackware is the very best thing ever. :-)
Code:
#!/bin/sh
if [ "x$(i8kfan speed)" == "x-1 1" ]; then
i8kfan - 2
else
i8kfan - 1
fi
-Dennis in New Orleans