#!/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