summarylogtreecommitdiffstats
path: root/asus-charging-threshold.service
blob: fadce371ebc8191da58cfda79404427c2e28aa82 (plain)
1
2
3
4
5
6
7
8
9
10
[Unit]
Description=Set the battery charge threshold
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/bin/bash -c 'cat /etc/asus-charging-threshold > /sys/class/power_supply/BAT0/charge_control_end_threshold'

[Install]
WantedBy=multi-user.target