#!/bin/sh

case "$1" in
start)
	for BAT in /sys/devices/platform/smapi/BAT*
	do
		echo "Enlarge life of battery $BAT"
		echo 81 > $BAT/start_charge_thresh
		echo 85 > $BAT/stop_charge_thresh
	done
	;;
stop)
	for BAT in /sys/devices/platform/smapi/BAT*
	do
		echo "Enlarge life of battery $BAT"
		echo 1 > $BAT/start_charge_thresh
		echo 100 > $BAT/stop_charge_thresh
	done
	;;
*)
	echo "Usage: /etc/init.d/battery start"
esac

exit 0
Fr Jul 30 13:54:24 CEST 2021
patent_button.gif valid-html401.png elektra.jpg fsfe-logo.png valid-css.png vim.gif anybrowser.gif