From 7c0cecad55bb3edac1fa097fc8c50f53dff9d9e2 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 2 Jun 2013 11:51:55 +0200 Subject: [PATCH] use BUS-variable for onewire too --- COC/init-coc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.2