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