blob: aa0734890a96c009df92af61eb215428da86a526 [file] [log] [blame]
[Unit]
Description=Configure the I2C ADT7463 for two-wire fans
ConditionKernelCommandLine=|czechlight=CL-ROADMv2
ConditionKernelCommandLine=|czechlight=sdn-roadm-add-drop
ConditionKernelCommandLine=|czechlight=sdn-roadm-line
Before=sysrepod.service
[Service]
Type=oneshot
# Configuration for two-fire fans
ExecStart=/sbin/i2cset -y 1 0x2e 0x73 0x0f b
# ADT7463: Register as an I2C device
ExecStart=/bin/sh -c 'echo adt7463 0x2e > /sys/bus/i2c/devices/i2c-1/new_device'
[Install]
WantedBy=multi-user.target