aboutsummaryrefslogtreecommitdiff
path: root/hooks/20-resolv.conf
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/20-resolv.conf')
-rw-r--r--hooks/20-resolv.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/20-resolv.conf b/hooks/20-resolv.conf
index 504a6c5373a4..7c29e2765b36 100644
--- a/hooks/20-resolv.conf
+++ b/hooks/20-resolv.conf
@@ -11,7 +11,7 @@ nocarrier_roaming_dir="$state_dir/roaming"
NL="
"
: ${resolvconf:=resolvconf}
-if type "$resolvconf" >/dev/null 2>&1; then
+if command -v "$resolvconf" >/dev/null 2>&1; then
have_resolvconf=true
else
have_resolvconf=false