summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 5b9c0cc..3c2b498 100755
--- a/configure
+++ b/configure
@@ -16,7 +16,7 @@ done
sed -i "/cpu_perc/a\\\\t{ temp, \"%s° \", \"$CPUtemp\"}," config.h
# detect battery
-for BAT_path in /sys/class/power_supply/BAT*
+for BAT_path in `find /sys/class/power_supply -name BAT*`
do
BAT="$(basename "$BAT_path")"
sed -i "/BATSTATE/a\\\\t{ battery_state, \"%s]\", \"$BAT\"}," config.h