Initial commit
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
INVENTORY=/system/chassis/pcie_card_e2b
|
||||
DEVPATH=/dev/input/by-path/platform-gpio-keys-event
|
||||
KEY=39
|
||||
NAME=pcie_card_e2b
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Phosphor GPIO %I Presence
|
||||
Wants=mapper-wait@-xyz-openbmc_project-inventory.service
|
||||
After=mapper-wait@-xyz-openbmc_project-inventory.service
|
||||
ConditionPathExists={envfiledir}/obmc/gpio/phosphor-pcie-card-e2b.conf
|
||||
|
||||
[Service]
|
||||
EnvironmentFile={envfiledir}/obmc/gpio/phosphor-pcie-card-e2b.conf
|
||||
ExecStart=/usr/bin/env phosphor-gpio-presence --path=${{DEVPATH}} --inventory=${{INVENTORY}} --key=${{KEY}} --name=${{NAME}}
|
||||
SyslogIdentifier=phosphor-gpio-presence
|
||||
|
||||
[Install]
|
||||
RequiredBy=multi-user.target
|
||||
Reference in New Issue
Block a user