Add the sensors-config tool
RFC PATCH v2 2/2 Add the sensors-config tool
This is a template for using sensors-config tool from within an init script at system startup.
---
Index: sensors/prog/detect/install.sh
=================================--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ sensors/prog/detect/install.sh 2010-02-19 19:21:45.763035204 +0100
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+FOUND=./sensors-config.py -f -y|wc -l
+if [ $FOUND -eq 0 ]; then
+ echo "No config found"
+ rm -f /etc/sensors.d/automobo.conf
+else
+ echo "Config found"
+fi
+
+exit 0
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors