]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
set-default-theme: redirect to /dev/null not /null
authorRay Strode <rstrode@redhat.com>
Mon, 4 Oct 2010 13:47:24 +0000 (09:47 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 4 Oct 2010 13:47:24 +0000 (09:47 -0400)
The set-default-theme script was incorrectly redirecting
stderr from a grep command to /null instead of /dev/null.

This causes a /null file to get created on the filesystem.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30576
Reported by: David LeBlanc <leblancdw@yahoo.com>

scripts/plymouth-set-default-theme.in

index 40e5f9fab18802ec581fb46b7b97b0e147f59c28..68e63d1b2666083aafb7e28ccc9d12e03a3125e5 100755 (executable)
@@ -188,7 +188,7 @@ fi
 [ -L ${PLYMOUTH_DATADIR}/plymouth/themes/default.plymouth ] && rm -f ${PLYMOUTH_DATADIR}/plymouth/themes/default.plymouth
 
 [ -d ${PLYMOUTH_CONFDIR} ] || mkdir -p ${PLYMOUTH_CONFDIR}
-grep -q '^[[]Daemon[]]' ${PLYMOUTH_CONFDIR}/plymouthd.conf 2> /null || echo '[Daemon]' >> ${PLYMOUTH_CONFDIR}/plymouthd.conf
+grep -q '^[[]Daemon[]]' ${PLYMOUTH_CONFDIR}/plymouthd.conf 2> /dev/null || echo '[Daemon]' >> ${PLYMOUTH_CONFDIR}/plymouthd.conf
 sed -i -e '/^Theme[[:blank:]]*=.*/d' ${PLYMOUTH_CONFDIR}/plymouthd.conf
 sed -i -e "s/^\([[]Daemon[]]\)\n*/\1\nTheme=${THEME_NAME}/" ${PLYMOUTH_CONFDIR}/plymouthd.conf