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