[RFC PATCH v2 2/2] Add the sensors-config tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux