5 lines
315 B
Bash
5 lines
315 B
Bash
|
#! /bin/sh
|
||
|
echo $1 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
|
||
|
echo $2 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
|
||
|
echo "start_charging_thresh = $(cat /sys/devices/platform/smapi/BAT0/start_charge_thresh)"
|
||
|
echo "stop_charging_thresh = $(cat /sys/devices/platform/smapi/BAT0/stop_charge_thresh)"
|