From 1b3a4136731dfdc33b18f239de266728b1dbfef2 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 29 May 2009 22:08:47 +0100 Subject: [PATCH] Skip sysctl errors --- init.d/fsck.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/fsck.in b/init.d/fsck.in index 52a3467b..66e58931 100644 --- a/init.d/fsck.in +++ b/init.d/fsck.in @@ -51,7 +51,7 @@ _on_ac_power() "connected:"*"OFF") return 128;; esac done - elif sysctl -q hw.acpi.acline >/dev/null; then + elif sysctl -q hw.acpi.acline >/dev/null 2>/dev/null; then case $(sysctl -n hw.acpi.acline) in 0) return 1;; *) return 0;;