]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
plymouth/plymouth-newroot.sh: don't "exit 0" for sourced scripts
authorHarald Hoyer <harald@redhat.com>
Mon, 30 Jul 2012 15:06:48 +0000 (17:06 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 30 Jul 2012 15:08:52 +0000 (17:08 +0200)
modules.d/50plymouth/plymouth-newroot.sh

index 58ac11ffcf7ec38111319117460f13e328a163c8..2311b4707eb23695433f1c95e02f976ec78634bc 100755 (executable)
@@ -2,5 +2,6 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
-[ -x /bin/plymouth -a -z "$DRACUT_SYSTEMD" ] || exit 0
-/bin/plymouth --newroot=$NEWROOT
+if [ -x /bin/plymouth -a -z "$DRACUT_SYSTEMD" ]; then
+    /bin/plymouth --newroot=$NEWROOT
+fi