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

@@ -45,7 +45,7 @@ if [ -n "${NS}" ]; then
DNS="${DNS}domain ${DOMAIN}\n"
fi
DNS="${DNS}${NS}"
if type resolvconf >/dev/null 2>&1; then
if command -v resolvconf >/dev/null 2>&1; then
printf "${DNS}" | resolvconf -a "${dev}"
else
# Preserve the existing resolv.conf