Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [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 |
Josh D. King | 9d5d7f4 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 9 | Conflicts=obmc-chassis-poweroff@%i.target |
Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [diff] [blame] | 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] |
Josh D. King | 9d5d7f4 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 18 | RequiredBy=obmc-chassis-poweron@%i.target |