Skip sysctl errors
This commit is contained in:
parent
a685e4db0a
commit
1b3a413673
@ -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;;
|
||||
|
Loading…
Reference in New Issue
Block a user