From: Harald Hoyer Date: Mon, 30 Jul 2012 15:06:48 +0000 (+0200) Subject: plymouth/plymouth-newroot.sh: don't "exit 0" for sourced scripts X-Git-Tag: 023~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19cd47fd26d072000a49661f78fc0a7200116ef6;p=thirdparty%2Fdracut.git plymouth/plymouth-newroot.sh: don't "exit 0" for sourced scripts --- diff --git a/modules.d/50plymouth/plymouth-newroot.sh b/modules.d/50plymouth/plymouth-newroot.sh index 58ac11ffc..2311b4707 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