2022-04-19 05:59:31 +02:00
|
|
|
diff -Nura plymouth-0.9.5~git20220412.e960111/scripts/plymouth-populate-initrd.in plymouth-0.9.5~git20220412.e960111_new/scripts/plymouth-populate-initrd.in
|
|
|
|
--- plymouth-0.9.5~git20220412.e960111/scripts/plymouth-populate-initrd.in 2022-04-18 15:52:57.536599145 +0800
|
|
|
|
+++ plymouth-0.9.5~git20220412.e960111_new/scripts/plymouth-populate-initrd.in 2022-04-18 16:58:56.924364207 +0800
|
|
|
|
@@ -460,6 +460,7 @@
|
2022-02-02 15:42:58 +01:00
|
|
|
inst ${PLYMOUTH_PLUGIN_PATH}/text.so $INITRDDIR
|
|
|
|
inst ${PLYMOUTH_DATADIR}/plymouth/themes/details/details.plymouth $INITRDDIR
|
|
|
|
inst ${PLYMOUTH_PLUGIN_PATH}/details.so $INITRDDIR
|
|
|
|
+inst ${PLYMOUTH_PLUGIN_PATH}/label.so $INITRDDIR
|
|
|
|
inst ${PLYMOUTH_LOGO_FILE} $INITRDDIR
|
|
|
|
inst @RELEASE_FILE@ $INITRDDIR
|
|
|
|
inst ${PLYMOUTH_POLICYDIR}/plymouthd.defaults $INITRDDIR
|
2022-04-19 05:59:31 +02:00
|
|
|
@@ -491,6 +492,12 @@
|
|
|
|
PLYMOUTH_MODULE_NAME=$(grep "ModuleName *= *" ${PLYMOUTH_SYSROOT}${PLYMOUTH_THEME_DIR}/${PLYMOUTH_THEME_NAME}.plymouth | sed 's/ModuleName *= *//')
|
2022-02-02 15:42:58 +01:00
|
|
|
PLYMOUTH_IMAGE_DIR=$(grep "ImageDir *= *" ${PLYMOUTH_SYSROOT}${PLYMOUTH_THEME_DIR}/${PLYMOUTH_THEME_NAME}.plymouth | sed 's/ImageDir *= *//')
|
2022-04-19 05:59:31 +02:00
|
|
|
|
2022-02-10 23:09:55 +01:00
|
|
|
+PLYMOUTH_Font_PATH=$(fc-list |grep $(fc-match "$(echo $(grep "^Font *= *" ${PLYMOUTH_SYSROOT}${PLYMOUTH_DATADIR}/plymouth/themes/`plymouth-set-default-theme`/`plymouth-set-default-theme`.plymouth | sed -e 's/^Font *= *//'| awk 'NF{NF--};1'))" |awk -F : {'print $1'}) |awk -F : {'print $1'} | sort -u | head -n 1)
|
|
|
|
+PLYMOUTH_TitleFont_PATH=$(fc-list |grep $(fc-match "$(echo $(grep "^TitleFont *= *" ${PLYMOUTH_SYSROOT}${PLYMOUTH_DATADIR}/plymouth/themes/`plymouth-set-default-theme`/`plymouth-set-default-theme`.plymouth | sed -e 's/^TitleFont *= *//'| awk 'NF{NF--};1'))" |awk -F : {'print $1'}) |awk -F : {'print $1'} | sort -u | head -n 1)
|
2022-02-02 15:42:58 +01:00
|
|
|
+
|
2022-02-10 23:09:55 +01:00
|
|
|
+[ -f "${PLYMOUTH_Font_PATH}" ] && inst ${PLYMOUTH_Font_PATH} $INITRDDIR
|
|
|
|
+[ -f "${PLYMOUTH_TitleFont_PATH}" ] && inst ${PLYMOUTH_TitleFont_PATH} $INITRDDIR
|
2022-04-19 05:59:31 +02:00
|
|
|
+
|
2022-02-02 15:42:58 +01:00
|
|
|
if [ ! -f ${PLYMOUTH_SYSROOT}${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so ]; then
|
|
|
|
echo "The default plymouth plugin (${PLYMOUTH_MODULE_NAME}) doesn't exist" >&2
|
2022-04-19 05:59:31 +02:00
|
|
|
exit 1
|