diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
index e8c31e04ce..be752a95f0 100755
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
@@ -41,7 +41,7 @@ for pm in $backend_list; do
 done
 
 remove_rcsd_link () {
-	if [ -n "`which update-rc.d`" ]; then
+	if command -v update-rc.d >/dev/null; then
 		update-rc.d -f run-postinsts remove
 	fi
 }
