pmaports/device/testing/device-xiaomi-armani/armani_battery_charging.sh

5 lines
132 B
Bash
Raw Normal View History

#!/bin/sh
logger "Battery is in charging state"
echo 0 > /sys/class/leds/red/brightness
echo 100 > /sys/class/leds/green/brightness