scripts/gentoo/tp_charging_thresholds.sh

5 lines
315 B
Bash
Executable File

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