summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2010-10-04 09:47:24 -0400
committerRay Strode <rstrode@redhat.com>2010-10-04 09:47:24 -0400
commitda723a30336df5246bf163096e84890d1250aa5b (patch)
treed4107010d572aee476c41bc827e5da6f21b5810f
parent37522b68c38ac086bd4f2630f28de6cf901f01aa (diff)
set-default-theme: redirect to /dev/null not /null
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>
-rwxr-xr-xscripts/plymouth-set-default-theme.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/plymouth-set-default-theme.in b/scripts/plymouth-set-default-theme.in
index 40e5f9fa..68e63d1b 100755
--- a/scripts/plymouth-set-default-theme.in
+++ b/scripts/plymouth-set-default-theme.in
@@ -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