aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/fsck.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/fsck.in b/init.d/fsck.in
index 5990509c..68cdf14e 100644
--- a/init.d/fsck.in
+++ b/init.d/fsck.in
@@ -32,8 +32,8 @@ _forcefsck()
_on_ac_power()
{
- if [ -f /proc/acpi/ac_adapter/AC/state ]; then
- cat /proc/acpi/ac_adapter/AC/state | while read line; do
+ if [ -f /proc/acpi/ac_adapter/AC*/state ]; then
+ cat /proc/acpi/ac_adapter/AC*/state | while read line; do
case "$line" in
"state:"*"off-line") return 128;;
esac