May 16, 2012

lm-sensors automatic deployment, issue with sensors-detect

If you wish to deploy lm-sensors on multiple different linux machines issue is with sensors-detect what ask you quite a few questions.

I asked on IRC and got few suggestions. First one is if you wish to accept defaults which sensors-detect suggest you need just to press [ENTER] all the time. To automate this use this one liner:

(while :; do echo ""; done ) | sensors-detect

If you wish to override defaults and answer YES to all questions then use this oneliner:

yes "" | sensors-detect