From da542cca6b509393ee1f26def6a95bd7988c3182 Mon Sep 17 00:00:00 2001 From: Michel-FK Date: Tue, 3 Nov 2020 10:35:18 +0100 Subject: [PATCH] move current_battery_percentage file to /tmp for Recovery Signed-off-by: Michel-FK --- .../board/funkey/rootfs-overlay/usr/local/sbin/low_bat_check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recovery/board/funkey/rootfs-overlay/usr/local/sbin/low_bat_check b/Recovery/board/funkey/rootfs-overlay/usr/local/sbin/low_bat_check index 142646c..b1a70da 100755 --- a/Recovery/board/funkey/rootfs-overlay/usr/local/sbin/low_bat_check +++ b/Recovery/board/funkey/rootfs-overlay/usr/local/sbin/low_bat_check @@ -17,7 +17,7 @@ USB_PRESENT_FILE=/sys/class/power_supply/axp20x-usb/present #USB_PRESENT_FILE=/sys/class/power_supply/axp20x-ac/present # Cheat for no USB present simulation when debugging BAT_PRESENT_FILE=/sys/class/power_supply/axp20x-battery/present BAT_PERCENT_FILE=/sys/class/power_supply/axp20x-battery/capacity -BAT_PERCENT_RESCALED_FILE=/etc/current_battery_percentage +BAT_PERCENT_RESCALED_FILE=/tmp/current_battery_percentage LOW_BAT_ICON=/sys/class/graphics/fb0/low_battery SCHEDULE_SHUTDOWN_CMD=sched_shutdown SIGNAL_URS1_TO_EMULATORS_CMD=signal_usr1_to_emulators