]> git.pld-linux.org Git - packages/lm_sensors.git/commitdiff
- added possibility to have more than one bus loaded
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 12 May 2002 08:06:47 +0000 (08:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sensors.init -> 1.8

sensors.init

index 4c396036d3dd0035004cefd2ee60b81878c8139f..7a5e93387ca05212d0087bea39853501167b5e62 100644 (file)
@@ -27,8 +27,12 @@ case "$1" in
                fi
                
                # insert modules
-               _modprobe single die "i2c-$BUS"
-               _modprobe single die "$CHIP"
+               for i in $BUS; do
+                       _modprobe single die "i2c-$i"
+               done
+               for i in $CHIP; do
+                       _modprobe single die "$i"
+               done
 
                if [ "$SENSORS_SET" = "1" ]; then
                        sensors -s
@@ -54,8 +58,12 @@ case "$1" in
                killproc sensord
                
                # remove kernel modules
-               /sbin/rmmod $CHIP >/dev/null 2>&1 
-               /sbin/rmmod i2c-$BUS >/dev/null 2>&1 
+               for i in $CHIP; do
+                       /sbin/rmmod $i >/dev/null 2>&1
+               done
+               for i in $BUS; do
+                       /sbin/rmmod i2c-$BUS >/dev/null 2>&1
+               done
                
                rm -f /var/lock/subsys/sensors
        else
This page took 0.046106 seconds and 4 git commands to generate.