#!/bin/bash

NODE=/sys/bus/i2c/devices/2-0051/eeprom
if [ -f ${NODE} ]; then
	hexdump -v -n 6 -s 0xfa -e '5/1 "%02x:" 1/1 "%02x\n"' ${NODE}
else
	i2ctransfer -y 2 w1@0x51 0xfa r6
fi
