Jan Kundrát | f1406a7 | 2017-10-18 17:35:57 +0200 | [diff] [blame] | 1 | [Unit] |
2 | Description=Configure the I2C ADT7463 for two-wire fans | ||||
3 | ConditionKernelCommandLine=|czechlight=CL-ROADMv2 | ||||
4 | Before=sysrepod.service | ||||
5 | |||||
6 | [Service] | ||||
7 | Type=oneshot | ||||
8 | # Configuration for two-fire fans | ||||
9 | ExecStart=/sbin/i2cset -y 1 0x2e 0x73 0x0f b | ||||
10 | # ADT7463: Register as an I2C device | ||||
11 | ExecStart=/bin/sh -c 'echo adt7463 0x2e > /sys/bus/i2c/devices/i2c-1/new_device' | ||||
12 | |||||
13 | [Install] | ||||
14 | WantedBy=multi-user.target |