From: Ray Strode Date: Mon, 4 Oct 2010 13:47:24 +0000 (-0400) Subject: set-default-theme: redirect to /dev/null not /null X-Git-Tag: 0.8.4~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da723a30336df5246bf163096e84890d1250aa5b;p=thirdparty%2Fplymouth.git 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 --- 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