blob: 40c489613dbb6732968ab1ddf6c70265c9c463e1 [file] [log] [blame]
William A. Kennington III1eada362020-03-30 12:03:28 -07001#!/bin/bash -eu
2[ -n "${OF_NAME+1}" ] || exit 0
3path="$(grep -xl "$OF_NAME" /sys/bus/i2c/devices/*/of_node/name)"
4eeprom="${path%/of_node/name}/eeprom"
5sed -i "s,^SYSFS_PATH=.*$,SYSFS_PATH=$eeprom," "$1"