Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
meta-phosphor
/
daac4dd8d8c1f221eadd9a1e1a7586fdf3067704
/
.
/
recipes-phosphor
/
ipmi
/
phosphor-ipmi-fru
/
of-name-to-eeprom.sh
blob: 40c489613dbb6732968ab1ddf6c70265c9c463e1 [
file
] [
log
] [
blame
]
#!/bin/bash -eu
[
-
n
"${OF_NAME+1}"
]
||
exit
0
path
=
"$(grep -xl "
$OF_NAME
" /sys/bus/i2c/devices/*/of_node/name)"
eeprom
=
"${path%/of_node/name}/eeprom"
sed
-
i
"s,^SYSFS_PATH=.*$,SYSFS_PATH=$eeprom,"
"$1"