]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
plymouth-populate-initrd: Check for new path to dracut-functions
authorRay Strode <rstrode@redhat.com>
Thu, 23 Feb 2012 15:04:37 +0000 (10:04 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 23 Feb 2012 15:04:37 +0000 (10:04 -0500)
scripts/plymouth-populate-initrd.in

index 6a689073bc72106a83e7506bf1338d77c3082539..5352c69ba389936c484e39dc24cd17d63a81f593 100755 (executable)
@@ -18,7 +18,9 @@ if [ -z "$PLYMOUTH_POPULATE_SOURCE_FUNCTIONS" ]; then
         PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="${PLYMOUTH_LIBEXECDIR}/initrd-functions"
     fi
 
-    if [ -f "${PLYMOUTH_DATADIR}/dracut/dracut-functions" ]; then
+    if [ -f "${PLYMOUTH_DATADIR}/dracut/dracut-functions.sh" ]; then
+        PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="${PLYMOUTH_DATADIR}/dracut/dracut-functions.sh"
+    elif [ -f "${PLYMOUTH_DATADIR}/dracut/dracut-functions" ]; then
         PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="${PLYMOUTH_DATADIR}/dracut/dracut-functions"
     fi
 fi