]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't error if default.so doesn't exist
authorRay Strode <rstrode@redhat.com>
Mon, 17 Nov 2008 20:31:59 +0000 (15:31 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 17 Nov 2008 20:31:59 +0000 (15:31 -0500)
There are cases where we don't set a default and instead
fallback at runtime to text.so.  Don't make that an error
condition.

scripts/plymouth-populate-initrd.in

index d2f1e6d1f3f4a721320cf625ccfbd540c535c7a7..8e4a29fa985795f52459a368b8da5b7e73c1a0a2 100755 (executable)
@@ -81,7 +81,11 @@ if [ ! -f ${LIBDIR}/plymouth/${PLYMOUTH_PLUGIN_NAME}.so ]; then
 fi
 
 inst ${LIBDIR}/plymouth/${PLYMOUTH_PLUGIN_NAME}.so $INITRDDIR
-inst ${LIBDIR}/plymouth/default.so $INITRDDIR
+
+if [ -f ${LIBDIR}/plymouth/default.so ]; then
+    inst ${LIBDIR}/plymouth/default.so $INITRDDIR
+fi
+
 if [ -d ${DATADIR}/plymouth/${PLYMOUTH_PLUGIN_NAME} ]; then
     for x in ${DATADIR}/plymouth/${PLYMOUTH_PLUGIN_NAME}/* ; do
         [ ! -f "$x" ] && break