Matt Spinler | 1a35b16 | 2017-03-08 13:53:51 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Bind FSI Driver |
| 3 | Wants=obmc-power-on@%i.target |
| 4 | After=obmc-power-on@%i.target |
| 5 | Wants=obmc-host-start-pre@%i.target |
| 6 | Before=obmc-host-start-pre@%i.target |
| 7 | Wants=fsi-scan@%i.service |
| 8 | Before=fsi-scan@%i.service |
| 9 | Conflicts=obmc-power-chassis-off@%i.target |
| 10 | ConditionDirectoryNotEmpty=!/sys/bus/platform/drivers/fsi-master-gpio/fsi-master |
| 11 | |
| 12 | [Service] |
| 13 | ExecStart=/bin/sh -c "echo fsi-master > /sys/bus/platform/drivers/fsi-master-gpio/bind" |
| 14 | Type=oneshot |
| 15 | RemainAfterExit=yes |
| 16 | |
| 17 | [Install] |
| 18 | RequiredBy=obmc-power-chassis-on@%i.target |