X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fhem-stuff/blobdiff_plain/8fc5602ac4ca60bb35f22c2e212479daa6266e13..cf4474a9a93f454bc7af0db64c8cf0303741a4d1:/COC/init-coc?ds=sidebyside diff --git a/COC/init-coc b/COC/init-coc index 97166c5..f0ee51e 100755 --- a/COC/init-coc +++ b/COC/init-coc @@ -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"