Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Read %I EEPROM |
Patrick Venture | d61c4c2 | 2017-04-11 14:03:49 -0700 | [diff] [blame] | 3 | Wants=mapper-wait@-xyz-openbmc_project-inventory.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-inventory.service |
William A. Kennington III | 5be2cca | 2020-05-08 13:39:41 -0700 | [diff] [blame] | 5 | StartLimitBurst=10 |
Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 6 | |
| 7 | [Service] |
William A. Kennington III | 5be2cca | 2020-05-08 13:39:41 -0700 | [diff] [blame] | 8 | Restart=on-failure |
Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 9 | Type=oneshot |
| 10 | EnvironmentFile={envfiledir}/obmc/eeproms/%I |
William A. Kennington III | 1eada36 | 2020-03-30 12:03:28 -0700 | [diff] [blame] | 11 | ExecStartPre={bindir}/of-name-to-eeprom.sh {envfiledir}/obmc/eeproms/%I |
Michael Tritz | fbd81be | 2017-08-15 14:07:23 -0500 | [diff] [blame] | 12 | ExecStart=/usr/bin/env phosphor-read-eeprom --eeprom $SYSFS_PATH --fruid $FRUID |
| 13 | SyslogIdentifier=phosphor-read-eeprom |
Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 14 | |
| 15 | [Install] |
Patrick Venture | d607cfb | 2019-04-04 12:15:22 -0700 | [diff] [blame] | 16 | WantedBy=multi-user.target |