aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@uberlaptop.marples.name>2009-05-29 21:33:44 +0100
committerRoy Marples <roy@uberlaptop.marples.name>2009-05-29 21:33:44 +0100
commita685e4db0aa08097ea729071ef6fee2543c3f671 (patch)
treec432ace5125f868733bf9a86c41b00b9f167ca3f
parente689f17933a5b235c5863b3c2c385b8ebf727395 (diff)
Add FreeBSD support for AC power.
-rw-r--r--init.d/fsck.in5
1 files changed, 5 insertions, 0 deletions
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