Simple OpenRC script to save and restore /sys/.../charge_control_end_threshold
The default value is to charge to 79
% only.
-
Save the
batteryctl
file into/etc/init.d/batteryctl
-
Set
/etc/init.d/batteryctl
permissions to755
and owner toroot:root
-
Enable the service with :
rc-update add batteryctl sysinit