]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@bruni.home.brehm-online.com>
Mon, 16 Jan 2012 17:46:57 +0000 (18:46 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Mon, 16 Jan 2012 17:46:57 +0000 (18:46 +0100)
Package changes:
+sys-apps/lm_sensors-3.2.0

.etckeeper
init.d/fancontrol [new file with mode: 0755]
init.d/lm_sensors [new file with mode: 0755]
sensors3.conf [new file with mode: 0644]

index a54251d90b693ce72ab46f0df25b201c4d68fd96..b96d71f97166fbc50bd8061bb70db91c04aa4756 100755 (executable)
@@ -22,6 +22,7 @@ mkdir -p './polkit-1/localauthority/90-mandatory.d'
 mkdir -p './ppp/peers'
 mkdir -p './security/limits.d'
 mkdir -p './security/namespace.d'
+mkdir -p './sensors.d'
 mkdir -p './skel/.ssh'
 mkdir -p './ssh/ca'
 mkdir -p './sudoers.d'
@@ -563,6 +564,7 @@ maybe chmod 0755 './init.d/device-mapper'
 maybe chmod 0755 './init.d/dhcpcd'
 maybe chmod 0755 './init.d/dmesg'
 maybe chmod 0755 './init.d/dmeventd'
+maybe chmod 0755 './init.d/fancontrol'
 maybe chmod 0755 './init.d/fsck'
 maybe chmod 0755 './init.d/git-daemon'
 maybe chmod 0755 './init.d/gpm'
@@ -572,6 +574,7 @@ maybe chmod 0755 './init.d/ip6tables'
 maybe chmod 0755 './init.d/iptables'
 maybe chmod 0755 './init.d/keymaps'
 maybe chmod 0755 './init.d/killprocs'
+maybe chmod 0755 './init.d/lm_sensors'
 maybe chmod 0755 './init.d/local'
 maybe chmod 0755 './init.d/localmount'
 maybe chmod 0755 './init.d/lvm'
@@ -919,6 +922,8 @@ maybe chmod 0755 './security/namespace.init'
 maybe chmod 0644 './security/pam_env.conf'
 maybe chmod 0644 './security/pam_winbind.conf'
 maybe chmod 0644 './security/time.conf'
+maybe chmod 0755 './sensors.d'
+maybe chmod 0644 './sensors3.conf'
 maybe chmod 0644 './services'
 maybe chmod 0755 './sgml'
 maybe chmod 0644 './sgml/catalog'
diff --git a/init.d/fancontrol b/init.d/fancontrol
new file mode 100755 (executable)
index 0000000..fb163ab
--- /dev/null
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d,v 1.1 2007/05/17 07:31:41 phreak Exp $
+
+CONFIG=/etc/fancontrol
+PID=/var/run/fancontrol.pid
+
+depend() {
+       after lm_sensors
+}
+
+checkconfig() {
+       if [ ! -f ${CONFIG} ]; then
+               eerror "Configuration file ${CONFIG} not found"
+               return 1
+       fi
+}
+
+start() {
+       checkconfig || return 1
+
+       ebegin "Starting fancontrol"
+       start-stop-daemon --start --quiet --background --pidfile ${PID} \
+               --exec /usr/sbin/fancontrol -- ${CONFIG}
+       eend ${?}
+}
+
+stop() {
+       ebegin "Stopping fancontrol"
+       start-stop-daemon --stop --pidfile ${PID}
+       eend ${?}
+}
diff --git a/init.d/lm_sensors b/init.d/lm_sensors
new file mode 100755 (executable)
index 0000000..18fb353
--- /dev/null
@@ -0,0 +1,105 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-3-init.d,v 1.1 2008/03/17 07:59:28 dberkholz Exp $
+
+checkconfig() {
+       if [ ! -f /etc/conf.d/lm_sensors ]; then
+               eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect"
+               return 1
+       fi
+
+       if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then
+               if [ -z "${MODULE_0}" ]; then
+                       eerror "MODULE_0 is not set in /etc/conf.d/lm_sensors, try running sensors-detect"
+                       return 1
+               fi
+       fi
+}
+
+start() {
+       checkconfig || return 1
+
+       if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then
+               einfo "Loading lm_sensors modules..."
+
+               mount | grep sysfs >/dev/null 2>&1
+               if [ ${?} = 0 ]; then
+                       if ! ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ); then
+                               ebegin "  Loading i2c-core"
+                               modprobe i2c-core >/dev/null 2>&1
+                               if [ ${?} != 0 ]; then
+                                       eerror "    Could not load i2c-core!"
+                                       eend 1
+                               fi
+                               ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ) || return 1
+                               eend 0
+                       fi
+               elif ! [ -e /proc/sys/dev/sensors ]; then
+                       ebegin "  Loading i2c-proc"
+                       modprobe i2c-proc >/dev/null 2>&1
+                       if [ ${?} != 0 ]; then
+                               eerror "    Could not load i2c-proc!"
+                               eend 1
+                       fi
+                       [ -e /proc/sys/dev/sensors ] || return 1
+                       eend 0
+               fi
+
+               i=0
+               while true; do
+                       module=`eval echo '$'MODULE_${i}`
+                       module_args=`eval echo '$'MODULE_${i}_ARGS`
+                       if [ -z "${module}" ]; then
+                               break
+                       fi
+                       ebegin "  Loading ${module}"
+                       modprobe ${module} ${module_args} >/dev/null 2>&1
+                       eend $?
+                       i=$(($i+1))
+               done
+       fi
+
+       if [ "${INITSENSORS}" = "yes" ]; then
+               if ! [ -f /etc/sensors3.conf ]; then
+                       eerror "/etc/sensors3.conf does not exist!"
+                       return 1
+               fi
+
+               ebegin "Initializing sensors"
+               /usr/bin/sensors -s >/dev/null 2>&1
+               eend ${?}
+       fi
+}
+
+stop() {
+       checkconfig || return 1
+
+       if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then
+               einfo "Unloading lm_sensors modules..."
+
+               # find the highest possible MODULE_ number
+               i=0
+               while true; do
+                       module=`eval echo '$'MODULE_${i}`
+                       if [ -z "${module}" ] ; then
+                               break
+                       fi
+                       i=$(($i+1))
+               done
+
+               while [ ${i} -gt 0 ]; do
+                       i=$(($i-1))
+                       module=`eval echo '$'MODULE_${i}`
+                       ebegin "  Unloading ${module}"
+                       rmmod ${module} >/dev/null 2>&1
+                       eend $?
+               done
+
+               if [ -e /proc/sys/dev/sensors ] ; then
+                       ebegin "  Unloading i2c-proc"
+                       rmmod i2c-proc >/dev/null 2>&1
+                       eend $?
+               fi
+       fi
+}
diff --git a/sensors3.conf b/sensors3.conf
new file mode 100644 (file)
index 0000000..35f4908
--- /dev/null
@@ -0,0 +1,434 @@
+# libsensors configuration file
+# -----------------------------
+#
+# This default configuration file only includes statements which do not
+# differ from one mainboard to the next. Only label, compute and set
+# statements for internal voltage and temperature sensors are included.
+#
+# In general, local changes should not be added to this file, but rather
+# placed in custom configuration files located in /etc/sensors.d. This
+# approach makes further updates much easier.
+#
+# Such custom configuration files for specific mainboards can be found at
+# http://www.lm-sensors.org/wiki/Configurations
+
+chip "lm78-*" "lm79-*" "lm80-*"
+
+    label temp1 "M/B Temp"
+
+
+chip "w83792d-*"
+
+    label in0 "VcoreA"
+    label in1 "VcoreB"
+    label in6 "+5V"
+    label in7 "5VSB"
+    label in8 "Vbat"
+
+    set in6_min  5.0 * 0.90
+    set in6_max  5.0 * 1.10
+    set in7_min  5.0 * 0.90
+    set in7_max  5.0 * 1.10
+    set in8_min  3.0 * 0.90
+    set in8_max  3.0 * 1.10
+
+
+chip "w83793-*"
+
+    label in0 "VcoreA"
+    label in1 "VcoreB"
+    label in7 "+5V"
+    label in8 "5VSB"
+    label in9 "Vbat"
+
+    set in7_min  5.0 * 0.90
+    set in7_max  5.0 * 1.10
+    set in8_min  5.0 * 0.90
+    set in8_max  5.0 * 1.10
+    set in9_min  3.0 * 0.90
+    set in9_max  3.0 * 1.10
+
+
+chip "via686a-*"
+
+    label in0 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+    set in4_min 12.0 * 0.90
+    set in4_max 12.0 * 1.10
+
+
+chip "adm1025-*" "ne1619-*"
+
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+    label in5 "VCC"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+    set in5_min  3.3 * 0.90
+    set in5_max  3.3 * 1.10
+# Depending on how your chip is hardwired, you may or may not have
+# +12V readings.
+#    set in4_min 12.0 * 0.90
+#    set in4_max 12.0 * 1.10
+
+    label temp1 "CPU Temp"
+    label temp2 "M/B Temp"
+
+
+chip "lm87-*" "adm1024-*"
+
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+    set in4_min 12.0 * 0.90
+    set in4_max 12.0 * 1.10
+
+    label temp1 "M/B Temp"
+    label temp2 "CPU Temp"
+
+
+chip "it87-*" "it8712-*" "it8716-*" "it8718-*" "it8720-*"
+
+    label in8 "Vbat"
+
+
+chip "fscpos-*" "fscher-*"
+#FSC "Hermes"
+
+    label in0 "+12V"
+    label in1 "+5V"
+    label in2 "Vbat"
+
+    label temp1 "CPU Temp"
+    label temp2 "M/B Temp"
+    label temp3 "Aux Temp"
+
+
+chip "fscscy-*"
+#FSC "Scylla"
+
+    label in0 "+12V"
+    label in1 "+5V"
+    label in2 "+3.3V"
+
+    label temp1 "CPU0 Temp"
+    label temp2 "CPU1 Temp"
+    label temp3 "M/B Temp"
+    label temp4 "Aux Temp"
+
+
+chip "fschds-*"
+# Fujitsu Technology Solutions, "Hades"-Chip
+
+# Temperatures
+    label temp1 "CPU Temp"
+    label temp2 "Super I/O Temp"
+    label temp3 "System Temp"
+
+# Fans
+    label fan1 "PSU Fan"
+    label fan2 "CPU Fan"
+    label fan3 "System FAN2"
+    label fan4 "System FAN3"
+    label fan5 "System FAN4"
+
+# Voltages
+    label in0 "+12V"
+    label in1 "+5V"
+    label in2 "Vbat"
+
+chip "fscsyl-*"
+# Fujitsu Technology Solutions, "Syleus"-Chip
+
+# Temperatures
+    label temp1 "CPU Temp"
+    label temp4 "Super I/O Temp"
+    label temp5 "Northbridge Temp"
+
+# Fans
+    label fan1 "CPU Fan"
+    label fan2 "System FAN2"
+    label fan3 "System FAN3"
+    label fan4 "System FAN4"
+    label fan7 "PSU Fan"
+
+# Voltages
+    label in0 "+12V"
+    label in1 "+5V"
+    label in2 "Vbat"
+    label in3 "+3.3V"
+    label in5 "+3.3V-Aux"
+
+chip "vt1211-*"
+
+    label in5 "+3.3V"
+
+    label temp2 "SIO Temp"
+
+
+chip "vt8231-*"
+
+    label in5 "+3.3V"
+
+
+chip "smsc47m192-*"
+
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+    label in5 "VCC"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+    set in4_min 12.0 * 0.90
+    set in4_max 12.0 * 1.10
+    set in5_min  3.3 * 0.90
+    set in5_max  3.3 * 1.10
+
+    label temp1 "SIO Temp"
+
+
+chip "lm85-*" "lm85b-*" "lm85c-*" "adm1027-*" "adt7463-*" "adt7468-*" "emc6d100-*" "emc6d102-*"
+
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+# Depending on how your chip is hardwired, you may or may not have
+# +12V readings.
+#    set in4_min 12.0 * 0.90
+#    set in4_max 12.0 * 1.10
+
+    label temp2 "M/B Temp"
+
+
+chip "pc87365-*" "pc87366-*"
+
+# Voltage inputs
+
+    label in7 "3VSB"
+    label in8 "VDD"
+    label in9 "Vbat"
+    label in10 "AVDD"
+
+    compute in7   @*2, @/2
+    compute in8   @*2, @/2
+    compute in10  @*2, @/2
+
+# These are the operating conditions as recommended by National
+# Semiconductor
+    set in7_min   3.0
+    set in7_max   3.6
+    set in8_min   3.0
+    set in8_max   3.6
+    set in10_min  3.0
+    set in10_max  3.6
+# Depending on the hardware setup, the battery voltage may or may not
+# be monitored.
+#    set in9_min   2.4
+#    set in9_max   3.6
+
+    label temp3 "SIO Temp"
+
+    set temp3_min    0
+    set temp3_max   70
+    set temp3_crit  85
+
+
+chip "adm1030-*" "adm1031-*"
+
+    label temp1 "M/B Temp"
+
+
+chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*"
+
+    label in0 "Vcore"
+    label in2 "AVCC"
+    label in3 "+3.3V"
+    label in7 "3VSB"
+    label in8 "Vbat"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  3.3 * 0.90
+    set in3_max  3.3 * 1.10
+    set in7_min  3.3 * 0.90
+    set in7_max  3.3 * 1.10
+    set in8_min  3.0 * 0.90
+    set in8_max  3.0 * 1.10
+
+
+chip "f71805f-*"
+
+    label in0 "+3.3V"
+
+    set in0_min  3.3 * 0.90
+    set in0_max  3.3 * 1.10
+
+
+chip "f71872f-*"
+
+    label in0 "+3.3V"
+    label in9 "Vbat"
+    label in10 "3VSB"
+
+    set in0_min   3.3 * 0.90
+    set in0_max   3.3 * 1.10
+    set in9_min   3.0 * 0.90
+    set in9_max   3.0 * 1.10
+    set in10_min  3.3 * 0.90
+    set in10_max  3.3 * 1.10
+
+
+chip "k8temp-*"
+
+    label temp1 "Core0 Temp"
+    label temp2 "Core0 Temp"
+    label temp3 "Core1 Temp"
+    label temp4 "Core1 Temp"
+
+
+chip "dme1737-*"
+
+    label in0 "5VSB"
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+    label in5 "3VSB"
+    label in6 "Vbat"
+
+    label temp2 "SIO Temp"
+
+    set in0_min  5.0 * 0.90
+    set in0_max  5.0 * 1.10
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+    set in4_min 12.0 * 0.90
+    set in4_max 12.0 * 1.10
+    set in5_min  3.3 * 0.90
+    set in5_max  3.3 * 1.10
+    set in6_min  3.0 * 0.90
+    set in6_max  3.0 * 1.10
+
+
+chip "sch311x-*"
+
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+    label in5 "3VSB"
+    label in6 "Vbat"
+
+    label temp2 "SIO Temp"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+    set in4_min 12.0 * 0.90
+    set in4_max 12.0 * 1.10
+    set in5_min  3.3 * 0.90
+    set in5_max  3.3 * 1.10
+    set in6_min  3.0 * 0.90
+    set in6_max  3.0 * 1.10
+
+
+chip "sch5027-*"
+
+    label in0 "5VSB"
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in5 "3VSB"
+    label in6 "Vbat"
+
+    label temp2 "SIO Temp"
+
+    set in0_min  5.0 * 0.90
+    set in0_max  5.0 * 1.10
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in5_min  3.3 * 0.90
+    set in5_max  3.3 * 1.10
+    set in6_min  3.0 * 0.90
+    set in6_max  3.0 * 1.10
+
+
+chip "f71882fg-*"
+
+    label in0 "+3.3V"
+    label in7 "3VSB"
+    label in8 "Vbat"
+
+    compute in0  @*2, @/2
+    compute in7  @*2, @/2
+    compute in8  @*2, @/2
+
+
+chip "f8000-*"
+
+    label in0 "+3.3V"
+    label in1 "3VSB"
+    label in2 "Vbat"
+
+    compute in0  @*2, @/2
+    compute in1  @*2, @/2
+    compute in2  @*2, @/2
+
+
+chip "adt7473-*" "adt7475-*"
+
+    label in2 "+3.3V"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+
+    label temp2 "Board Temp"
+
+
+chip "adt7476-*" "adt7490-*"
+
+    label in1 "Vcore"
+    label in2 "+3.3V"
+    label in3 "+5V"
+    label in4 "+12V"
+
+    set in2_min  3.3 * 0.90
+    set in2_max  3.3 * 1.10
+    set in3_min  5.0 * 0.90
+    set in3_max  5.0 * 1.10
+# Depending on how your ADT7476 is hardwired, you may or may not have
+# +12V readings.
+#    set in4_min 12.0 * 0.90
+#    set in4_max 12.0 * 1.10
+
+    label temp2 "M/B Temp"