summaryrefslogtreecommitdiff
path: root/plymouth/debian/patches/0004-return-code.patch
blob: 362374595950228e0c976dcaafb5fd71becf96ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Michael Prokop <mika@debian.org>
Description: Fixing wrong return code of plymouth-set-default-theme (Closes: #605018).

--- a/scripts/plymouth-set-default-theme.in
+++ b/scripts/plymouth-set-default-theme.in
@@ -184,5 +184,7 @@ grep -q '^[[]Daemon[]]' ${PLYMOUTH_CONFD
 sed -i -e '/^Theme[[:blank:]]*=.*/d' ${PLYMOUTH_CONFDIR}/plymouthd.conf
 sed -i -e "s/^\([[]Daemon[]]\)\n*/\1\nTheme=${THEME_NAME}/" ${PLYMOUTH_CONFDIR}/plymouthd.conf
 
-[ $DO_INITRD_REBUILD -ne 0 ] && (${PLYMOUTH_LIBEXECDIR}/plymouth/plymouth-update-initrd)
+if [ $DO_INITRD_REBUILD -ne 0 ] ; then
+        (${PLYMOUTH_LIBEXECDIR}/plymouth/plymouth-update-initrd)
+fi
 exit 0
bgstack15