]> git.zerfleddert.de Git - fhem-stuff/commitdiff
use BUS-variable for onewire too
authorMichael Gernoth <michael@gernoth.net>
Sun, 2 Jun 2013 09:51:55 +0000 (11:51 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 2 Jun 2013 09:51:55 +0000 (11:51 +0200)
COC/init-coc

index 97166c57fa52cb87ed75e1be8355aa04f01fdc51..f0ee51ea00840dda63ce447bdc002271232a9f3b 100755 (executable)
@@ -47,7 +47,7 @@ if [ ! -e "/sys/bus/i2c/devices/${BUS}-0068" ]; then
        echo "ds1339 0x68" >"/sys/class/i2c-adapter/i2c-${BUS}/new_device"
 fi
 
-if [ ! -e "/sys/bus/i2c/devices/1-0018" ]; then
+if [ ! -e "/sys/bus/i2c/devices/${BUS}-0018" ]; then
        echo "enabling 1wire"
        modprobe ds2482
        echo "ds2482 0x18" >"/sys/class/i2c-adapter/i2c-${BUS}/new_device"
Impressum, Datenschutz