From aaa0498bf86baa065656b6a5c37cff82c032eb6d Mon Sep 17 00:00:00 2001 From: Semen Maryasin Date: Mon, 12 Oct 2009 08:21:50 +0100 Subject: EeePC 901 has /proc/acpi/ac_adapter/AC0, so check all AC entries. --- init.d/fsck.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.d') 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 -- cgit v1.2.3