plymouth: fix detection of plymouth directory

Some distros have both /usr/lib/plymouth and /usr/libexec/plymouth
directorirs, so we should check the existance of plymouth-populate-initrd
script.

Fixes: 421b46f8ae
master
Alexander Tsoy 2018-03-23 11:52:27 +03:00 committed by Harald Hoyer
parent 3c3b2cf093
commit fe6c7e0f06
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ pkglib_dir() {
_dirs+=" /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/plymouth"
fi
for _dir in $_dirs; do
if [ -d $_dir ]; then
if [ -x $_dir/plymouth-populate-initrd ]; then
echo $_dir
return
fi