From a685e4db0aa08097ea729071ef6fee2543c3f671 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 29 May 2009 21:33:44 +0100 Subject: Add FreeBSD support for AC power. --- init.d/fsck.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.d/fsck.in b/init.d/fsck.in index 8cf194bc..52a3467b 100644 --- a/init.d/fsck.in +++ b/init.d/fsck.in @@ -51,6 +51,11 @@ _on_ac_power() "connected:"*"OFF") return 128;; esac done + elif sysctl -q hw.acpi.acline >/dev/null; then + case $(sysctl -n hw.acpi.acline) in + 0) return 1;; + *) return 0;; + esac else return 0 fi -- cgit v1.2.3