[arch-commits] CVS update of extra/system/lm_sensors (PKGBUILD fancontrol.rc)

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Nov 11 17:38:33 UTC 2007


    Date: Sunday, November 11, 2007 @ 12:38:33
  Author: andyrtr
    Path: /home/cvs-extra/extra/system/lm_sensors

Modified: PKGBUILD (1.8 -> 1.9) fancontrol.rc (1.1 -> 1.2)

upgpkg: lm_sensors 2.10.5-2
fixed fancontrol init script; solves #8025


---------------+
 PKGBUILD      |    8 ++++----
 fancontrol.rc |    5 ++---
 2 files changed, 6 insertions(+), 7 deletions(-)


Index: extra/system/lm_sensors/PKGBUILD
diff -u extra/system/lm_sensors/PKGBUILD:1.8 extra/system/lm_sensors/PKGBUILD:1.9
--- extra/system/lm_sensors/PKGBUILD:1.8	Fri Oct 26 11:54:27 2007
+++ extra/system/lm_sensors/PKGBUILD	Sun Nov 11 12:38:33 2007
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD,v 1.8 2007/10/26 15:54:27 andyrtr Exp $
+# $Id: PKGBUILD,v 1.9 2007/11/11 17:38:33 andyrtr Exp $
 # Maintainer: aurelien <aurelien at archlinux.org>
 # Contributor: Aurelien Foret <orelien at chez.com>
 pkgname=lm_sensors
 pkgver=2.10.5
-pkgrel=1
+pkgrel=2
 pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring."
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('GPL')
 depends=('perl' 'sysfsutils')
 makedepends=('bison')
@@ -17,7 +17,7 @@
 url="http://www.lm-sensors.org/"
 md5sums=('77f96bc8a7773e95b2990d756e4925d6'
          'ed3fc34e7c7df783b5d6160db6f157d8'
-         '540abc9d5355f80b620febd3d7f1507f')
+         'f14e335a8eea27388892c36af8099782')
 
 build() {
   cd $startdir/src/$pkgname-$pkgver
Index: extra/system/lm_sensors/fancontrol.rc
diff -u extra/system/lm_sensors/fancontrol.rc:1.1 extra/system/lm_sensors/fancontrol.rc:1.2
--- extra/system/lm_sensors/fancontrol.rc:1.1	Tue Aug 21 12:13:57 2007
+++ extra/system/lm_sensors/fancontrol.rc	Sun Nov 11 12:38:33 2007
@@ -3,11 +3,10 @@
 . /etc/rc.conf
 . /etc/rc.d/functions
 
-PID=`pidof -o %PPID /usr/sbin/fancontrol`
 case "$1" in
   start)
     stat_busy "Starting fancontrol"
-    [ -z "$PID" ] && /usr/sbin/fancontrol
+    /usr/sbin/fancontrol >/dev/null 2>&1 &
     if [ $? -gt 0 ]; then
       stat_fail
     else
@@ -17,7 +16,7 @@
     ;;
   stop)
     stat_busy "Stopping fancontrol"
-    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    [ -f /var/run/fancontrol.pid ] && kill `cat /var/run/fancontrol.pid`
     if [ $? -gt 0 ]; then
       stat_fail
     else




More information about the arch-commits mailing list