blob: 77c61f41465e6884b669153083e633f563096975 [file] [log] [blame]
Matt Spinler1a35b162017-03-08 13:53:51 -06001[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
9Conflicts=obmc-power-chassis-off@%i.target
10ConditionDirectoryNotEmpty=!/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]
18RequiredBy=obmc-power-chassis-on@%i.target