]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[set-default-theme] Another fix with commented group lines
authorRay Strode <rstrode@redhat.com>
Wed, 24 Mar 2010 19:10:35 +0000 (15:10 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 24 Mar 2010 19:10:35 +0000 (15:10 -0400)
scripts/plymouth-set-default-theme.in

index 00d018434b63887e0563c3ac1ecc5b2507df8d50..dd0b915a00a8eac55d5e54de38be85288ba42161 100755 (executable)
@@ -179,7 +179,7 @@ fi
 [ -d ${PLYMOUTH_CONFDIR} ] || mkdir -p ${PLYMOUTH_CONFDIR}
 grep -q '^[[]Daemon[]]' ${PLYMOUTH_CONFDIR}/plymouthd.conf 2> /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
+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)