diff options
author | Ray Strode <rstrode@redhat.com> | 2008-06-19 16:57:26 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-06-19 16:57:26 -0400 |
commit | eae4d1638115d28213508235af09e3b94db2d9f0 (patch) | |
tree | 816d78a9ca7bc1f84f2242c6cbcac71bb619bba5 /scripts | |
parent | 695c017a2cc82d0d797a4f788045e945324878e3 (diff) | |
download | plymouth-eae4d1638115d28213508235af09e3b94db2d9f0.tar.gz plymouth-eae4d1638115d28213508235af09e3b94db2d9f0.tar.xz plymouth-eae4d1638115d28213508235af09e3b94db2d9f0.zip |
Don't create plugin specific data dir in initrd unless it has one
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/plymouth-populate-initrd.in | 7 |
1 files changed, 4 insertions, 3 deletions
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 |