From 60d288a877a3671ea5b3483ed7c4612ec897b99a Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 1 Dec 2013 19:25:01 -0600 Subject: remove type command The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen for informing me wrt the fix. --- scripts/on_ac_power | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3