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"