From: Alexander Tsoy Date: Sun, 9 Sep 2018 10:57:33 +0000 (+0300) Subject: base/dracut-lib.sh: use "command -v" in pidof() X-Git-Tag: 049~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4334e9bdf5ff85d5f9d9eb12f51a6b78e94101e;p=thirdparty%2Fdracut.git base/dracut-lib.sh: use "command -v" in pidof() "type -P" doesn't work in dash --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index b78272a31..f71e757cf 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -1060,7 +1060,7 @@ if ! command -v pidof >/dev/null 2>/dev/null; then debug_on return 1 fi - _exe=$(type -P "$1") + _exe=$(command -v "$1") for i in /proc/*/exe; do [ -e "$i" ] || continue if [ -n "$_exe" ]; then