#!/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
Die Jän 3 15:01:52 CET 2017
anybrowser.gif elektra.jpg fsfe-logo.png patent_button.gif valid-css.png valid-html401.png vim.gif