Initial commit
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Read %I EEPROM
|
||||
Wants=mapper-wait@-xyz-openbmc_project-inventory.service
|
||||
After=mapper-wait@-xyz-openbmc_project-inventory.service
|
||||
StartLimitInterval=120
|
||||
StartLimitBurst=10
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
EnvironmentFile={envfiledir}/obmc/eeproms/%I
|
||||
ExecStartPre={bindir}/of-name-to-eeprom.sh {envfiledir}/obmc/eeproms/%I
|
||||
ExecStart=/usr/bin/env phosphor-read-eeprom --eeprom $SYSFS_PATH --fruid $FRUID
|
||||
SyslogIdentifier=phosphor-read-eeprom
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
SYSFS_PATH=/sys/bus/i2c/devices/3-0050/eeprom
|
||||
FRUID=0
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
SYSFS_PATH=/sys/bus/i2c/devices/4-0050/eeprom
|
||||
FRUID=1
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
SYSFS_PATH=/sys/bus/i2c/devices/5-0050/eeprom
|
||||
FRUID=2
|
||||
Reference in New Issue
Block a user