Skip sysctl errors

This commit is contained in:
Roy Marples 2009-05-29 22:08:47 +01:00
parent a685e4db0a
commit 1b3a413673

View File

@ -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;;