]> git.pld-linux.org Git - packages/lm_sensors.git/commitdiff
- s#$CHIP#i2c-$CHIP#; s#i2c-$BUS#$BUS#
authorkloczek <kloczek@pld-linux.org>
Fri, 1 Feb 2002 05:08:20 +0000 (05:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- run sensors command in status target.

Changed files:
    sensors.init -> 1.6

sensors.init

index 17bf43207867cd5d535a0ca3b4d8ce8939cea89a..34efae9fef71fcc33cbc785f7deacc7101ee1327 100644 (file)
@@ -27,8 +27,8 @@ case "$1" in
                fi
                
                # insert modules
-               _modprobe single die "i2c-$BUS"
-               _modprobe single die "$CHIP"
+               _modprobe single die "$BUS"
+               _modprobe single die "i2c-$CHIP"
 
                if [ "$SENSORS_SET" = "1" ]; then
                        sensors -s
@@ -54,8 +54,8 @@ case "$1" in
                killproc sensord
                
                # remove kernel modules
-               /sbin/rmmod $CHIP >/dev/null 2>&1 
-               /sbin/rmmod i2c-$BUS >/dev/null 2>&1 
+               /sbin/rmmod i2c-$CHIP >/dev/null 2>&1 
+               /sbin/rmmod $BUS >/dev/null 2>&1 
                
                rm -f /var/lock/subsys/sensors
        else
@@ -65,6 +65,7 @@ case "$1" in
        ;;
   status)
        status sensord
+       sensors
        ;;
   restart)
        $0 stop
This page took 0.03201 seconds and 4 git commands to generate.