diff --git a/suse-initrd-support b/suse-initrd-support index 6d0ed8f..bb93b6e 100644 --- a/suse-initrd-support +++ b/suse-initrd-support @@ -47,7 +47,7 @@ + +PLUGIN_PATH=$(plymouth --get-splash-plugin-path) + -+MODULE=$(grep "ModuleName *= *" /usr/share/plymouth/themes/${THEME}/${THEME}.plymouth | sed 's/ModuleName *= *//') ++MODULE=$(grep "ModuleName *= *" @PLYMOUTH_DATADIR@/plymouth/themes/${THEME}/${THEME}.plymouth | sed 's/ModuleName *= *//') + +if [ ! -f "$PLUGIN_PATH/${MODULE}.so" ]; then + echo "The default plymouth plugin ($MODULE) doesn't exist." > /dev/stderr