aboutsummaryrefslogtreecommitdiff
path: root/scripts/on_ac_power
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/on_ac_power')
-rwxr-xr-xscripts/on_ac_power2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/on_ac_power b/scripts/on_ac_power
index 5dd516f2..b35094fe 100755
--- a/scripts/on_ac_power
+++ b/scripts/on_ac_power
@@ -19,7 +19,7 @@ elif [ -f /proc/pmu/info ]; then
"AC Power"*": 0") exit 128;;
esac
done
-elif type envstat >/dev/null 2>&1; then
+elif command -v envstat >/dev/null 2>&1; then
# NetBSD has envstat
envstat -d acpiacad0 2>/dev/null | while read line; do
case "$line" in