blob: 82399aee013deae3506924d684db602eef4653b5 [file] [log] [blame]
Matt Spinlerd09f7502017-04-07 14:21:33 -05001[Unit]
2Description=Bind FSI Driver
3Wants=obmc-power-on@%i.target
4After=obmc-power-on@%i.target
5Wants=obmc-host-start-pre@%i.target
6Before=obmc-host-start-pre@%i.target
7Wants=fsi-scan@%i.service
8Before=fsi-scan@%i.service
Josh D. King9d5d7f42017-04-06 14:43:46 -05009Conflicts=obmc-chassis-poweroff@%i.target
Matt Spinlerd09f7502017-04-07 14:21:33 -050010ConditionDirectoryNotEmpty=!/sys/bus/platform/drivers/fsi-master-gpio/fsi-master
11
12[Service]
13ExecStart=/bin/sh -c "echo fsi-master > /sys/bus/platform/drivers/fsi-master-gpio/bind"
14Type=oneshot
15RemainAfterExit=yes
16
17[Install]
Josh D. King9d5d7f42017-04-06 14:43:46 -050018RequiredBy=obmc-chassis-poweron@%i.target