From eae4d1638115d28213508235af09e3b94db2d9f0 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 19 Jun 2008 16:57:26 -0400 Subject: Don't create plugin specific data dir in initrd unless it has one --- scripts/plymouth-populate-initrd.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/plymouth-populate-initrd.in b/scripts/plymouth-populate-initrd.in index c52f39e..033ca06 100755 --- a/scripts/plymouth-populate-initrd.in +++ b/scripts/plymouth-populate-initrd.in @@ -117,6 +117,7 @@ fi install -m755 ${LIBDIR}/plymouth/${PLUGIN_NAME}.so ${INITRDDIR}${LIBDIR}/plymouth (cd ${INITRDDIR}${LIBDIR}/plymouth; ln -sf ${PLUGIN_NAME}.so default.so) -mkdir -p ${INITRDDIR}${DATADIR}/plymouth/${PLUGIN_NAME} -install -m644 ${DATADIR}/plymouth/${PLUGIN_NAME}/* ${INITRDDIR}${DATADIR}/plymouth/${PLUGIN_NAME} -install -D -m644 ${DATADIR}/plymouth/${PLUGIN_NAME}/* ${INITRDDIR}${DATADIR}/plymouth/${PLUGIN_NAME} +if [ -d ${DATADIR}/plymouth/${PLUGIN_NAME} ]; then + mkdir -p ${INITRDDIR}${DATADIR}/plymouth/${PLUGIN_NAME} + install -D -m644 ${DATADIR}/plymouth/${PLUGIN_NAME}/* ${INITRDDIR}${DATADIR}/plymouth/${PLUGIN_NAME} +fi -- cgit