Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Scan FSI devices |
| 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 |
Josh D. King | 9d5d7f4 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 7 | Conflicts=obmc-chassis-poweroff@%i.target |
Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [diff] [blame] | 8 | |
| 9 | [Service] |
Edward A. James | c4e17bb | 2017-04-25 16:20:23 -0500 | [diff] [blame] | 10 | ExecStart=/bin/sh -c "if [ -f /sys/bus/platform/devices/gpio-fsi/fsi0/rescan ]; then echo 1 > /sys/bus/platform/devices/gpio-fsi/fsi0/rescan; else echo 1 > /sys/bus/platform/devices/fsi-master/scan; fi" |
Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [diff] [blame] | 11 | Type=oneshot |
| 12 | RemainAfterExit=yes |
| 13 | |
| 14 | [Install] |
Josh D. King | 9d5d7f4 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 15 | RequiredBy=obmc-chassis-poweron@%i.target |