Initial commit
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
OBJPATH="--path=/system/chassis"
|
||||
AIR="--air"
|
||||
WATER=""
|
||||
DEVICE="--dev=/dev/input/by-path/platform-gpio-keys-event"
|
||||
CODE="--event=13"
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Phosphor Cooling Type
|
||||
Wants=mapper-wait@-xyz-openbmc_project-inventory.service
|
||||
After=mapper-wait@-xyz-openbmc_project-inventory.service
|
||||
ConditionPathExists={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
EnvironmentFile={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf
|
||||
ExecStart=/usr/bin/phosphor-cooling-type ${{OBJPATH}} ${{AIR}} ${{WATER}} ${{DEVICE}} ${{CODE}}
|
||||
|
||||
[Install]
|
||||
RequiredBy=multi-user.target
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Phosphor Fan Control Daemon
|
||||
Requires=xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x40{ADDR}-max31785\x4052.service
|
||||
After=xyz.openbmc_project.Hwmon@-ahb-apb-bus\x401e78a000-i2c\x2dbus\x40{ADDR}-max31785\x4052.service
|
||||
Requires=phosphor-cooling-type@%i.service
|
||||
After=phosphor-cooling-type@%i.service
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
ExecStart=/usr/bin/phosphor-fan-control --control
|
||||
|
||||
[Install]
|
||||
RequiredBy=obmc-chassis-poweron@%i.target
|
||||
Reference in New Issue
Block a user