summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-07-30 17:06:48 +0200
committerHarald Hoyer <harald@redhat.com>2012-07-30 17:08:52 +0200
commit19cd47fd26d072000a49661f78fc0a7200116ef6 (patch)
tree7d7e73aff90749ec87b7c3324dd57a375867b91b
parentcf62cc435f6785261d3ea8731f154e1898c35cc1 (diff)
downloaddracut-19cd47fd26d072000a49661f78fc0a7200116ef6.tar.gz
dracut-19cd47fd26d072000a49661f78fc0a7200116ef6.tar.bz2
dracut-19cd47fd26d072000a49661f78fc0a7200116ef6.zip
plymouth/plymouth-newroot.sh: don't "exit 0" for sourced scripts
-rwxr-xr-xmodules.d/50plymouth/plymouth-newroot.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules.d/50plymouth/plymouth-newroot.sh b/modules.d/50plymouth/plymouth-newroot.sh
index 58ac11ff..2311b470 100755
--- a/modules.d/50plymouth/plymouth-newroot.sh
+++ b/modules.d/50plymouth/plymouth-newroot.sh
@@ -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