From 3769428fdfea1af551489bcaae031aaa61fdde8e Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 17 Sep 2024 18:08:36 -0400 Subject: [PATCH] Added path to ps5 contoller to game controller battery script. --- scripts/game_controler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/game_controler.sh b/scripts/game_controler.sh index 901fe20..9742043 100755 --- a/scripts/game_controler.sh +++ b/scripts/game_controler.sh @@ -19,7 +19,7 @@ batteryName="" if [[ "$batteryName" == "" ]]; then - batteryName="$(find /sys/class/power_supply -name 'sony_controller_battery_*' | cut -d/ -f5)" + batteryName="$(find /sys/class/power_supply -name 'sony_controller_battery_*' -or -name 'ps-controller-battery-*' | cut -d/ -f5)" fi # If there's no file, we don't check it.