aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-05-29 22:08:47 +0100
committerRoy Marples <roy@marples.name>2009-05-29 22:08:47 +0100
commit1b3a4136731dfdc33b18f239de266728b1dbfef2 (patch)
treea3323b2975f612e9283f2bf1d2d5560843d6410b
parenta685e4db0aa08097ea729071ef6fee2543c3f671 (diff)
Skip sysctl errors
-rw-r--r--init.d/fsck.in2
1 files changed, 1 insertions, 1 deletions
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;;