Explorar el Código

Merge "hooks/pre-auto-gc: fix AC detection on OSX Maverick"

David Pursehouse hace 12 años
padre
commit
f77ef2edb0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hooks/pre-auto-gc

+ 1 - 1
hooks/pre-auto-gc

@@ -35,7 +35,7 @@ elif grep -q "AC Power \+: 1" /proc/pmu/info 2>/dev/null
 then
 then
 	exit 0
 	exit 0
 elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt |
 elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt |
-	grep -q "Currently drawing from 'AC Power'"
+	grep -q "drawing from 'AC Power'"
 then
 then
 	exit 0
 	exit 0
 elif test -d /sys/bus/acpi/drivers/battery && test 0 = \
 elif test -d /sys/bus/acpi/drivers/battery && test 0 = \