* update fancontrol configuration * Enable network activity led, default to eth0 * Do not disable auto poweron on power loss event * Added UPS timer Provide timer to poweroff system after 600 s (10 minutes) of power loss event. If power restored within that time window, cancel the timer. * Use different service for legacy LK 4.4 does not have ledtrig-netdev, so it will cause the service to fail. * Use 10m instead 600 seconds in UPS timer Systemd time can use m suffix for minutes. Use this to make it easier to read.
12 lines
424 B
Plaintext
12 lines
424 B
Plaintext
ACTION=="add", GOTO="helios64_ups_end"
|
|
ACTION=="remove", GOTO="helios64_ups_end"
|
|
|
|
# Power loss event
|
|
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTRS{online}=="0", RUN+="/usr/bin/systemctl start helios64-ups.timer"
|
|
|
|
# Power restore event
|
|
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTRS{online}=="1", RUN+="/usr/bin/systemctl stop helios64-ups.timer"
|
|
|
|
LABEL="helios64_ups_end"
|
|
|