Matt Spinler | 1a35b16 | 2017-03-08 13:53:51 -0600 | [diff] [blame] | 1 | [Unit] |
2 | Description=Enable FSI | ||||
3 | Conflicts=fsi-disable.service | ||||
4 | ConditionDirectoryNotEmpty=!/sys/bus/platform/drivers/fsi-master-gpio/fsi-master | ||||
5 | |||||
6 | [Service] | ||||
7 | ExecStart=/bin/sh -c "echo fsi-master > /sys/bus/platform/drivers/fsi-master-gpio/bind" | ||||
8 | ExecStart=/bin/sh -c "echo 1 > /sys/bus/platform/devices/fsi-master/scan" | ||||
9 | Type=oneshot | ||||
10 | RemainAfterExit=yes |