distribution/projects/Rockchip/packages/system-utils/system.d/battery.service

13 lines
274 B
Desktop File

[Unit]
Description=RG351 Low Power monitor
ConditionPathExists=/sys/class/power_supply/battery/capacity
Before=jelos.target
[Service]
Environment=HOME=/storage
EnvironmentFile=/etc/profile
ExecStart=/usr/bin/battery
Restart=on-failure
[Install]
WantedBy=multi-user.target