All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [RFC PATCH v2 2/2] Add the sensors-config tool
@ 2010-02-19 19:39 Andre Prendel
  0 siblings, 0 replies; only message in thread
From: Andre Prendel @ 2010-02-19 19:39 UTC (permalink / raw)
  To: lm-sensors

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-19 19:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19 19:39 [lm-sensors] [RFC PATCH v2 2/2] Add the sensors-config tool Andre Prendel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.