Václav Kubernát | 771b823 | 2021-04-23 14:16:07 +0200 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=Enable fans |
| 3 | ConditionKernelCommandLine=|czechlight=sdn-inline-g2 |
| 4 | ConditionKernelCommandLine=|czechlight=sdn-roadm-add-drop-g2 |
| 5 | ConditionKernelCommandLine=|czechlight=sdn-roadm-coherent-a-d-g2 |
| 6 | ConditionKernelCommandLine=|czechlight=sdn-roadm-hires-add-drop-g2 |
| 7 | ConditionKernelCommandLine=|czechlight=sdn-roadm-line-g2 |
| 8 | ConditionKernelCommandLine=|czechlight=sdn-roadm-hires-add-drop-g2 |
| 9 | |
| 10 | [Service] |
| 11 | Type=oneshot |
| 12 | RemainAfterExit=yes |
| 13 | ExecStart=/bin/bash -c 'for FAN in /sys/bus/i2c/devices/1-0020/hwmon/hwmon*/fan{1,2,3,4}_enable; do echo 1 > "$FAN"; done' |