aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemen Maryasin <marsoft@ya.ru>2009-10-12 08:21:50 +0100
committerRoy Marples <roy@marples.name>2009-10-12 08:21:50 +0100
commitaaa0498bf86baa065656b6a5c37cff82c032eb6d (patch)
treecd309465dc33eca264a24bf3536bbbf61fd0e5f4
parent0ffe5caf18c44f32232b688d4826e3837bda18f3 (diff)
EeePC 901 has /proc/acpi/ac_adapter/AC0, so check all AC entries.
-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