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

4 lines
132 B
Bash

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