remove type command

The posix equivalent of the type command is "command -v", so now we use
that. Thanks to Jonathan Callen <jcallen@gentoo.org> for informing me
wrt the fix.
This commit is contained in:
William Hubbs
2013-12-01 19:25:01 -06:00
parent 1fccf91df1
commit 60d288a877
11 changed files with 12 additions and 12 deletions

View File

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