Update fsscript so it checks to make sure the files exist before using sed on them. This allows us to use a single fsscript on all arches.

svn path=/trunk/; revision=190
This commit is contained in:
Chris Gianelloni 2006-08-11 19:34:33 +00:00
parent 8398fd014c
commit b6fb39f5e5

View file

@ -1,6 +1,9 @@
#!/bin/bash
sed -e '/^[^#]\+=.\+$/d' /etc/X11/gdm/custom.conf > \
/etc/X11/gdm/custom.conf.old
sed -i -e 's/gentoo-emergence/gentoo-livecd-2006.1/' \
/etc/X11/gdm/custom.conf
if [ -e /etc/X11/gdm/custom.conf ]
then
sed -e '/^[^#]\+=.\+$/d' /etc/X11/gdm/custom.conf > \
/etc/X11/gdm/custom.conf.old
sed -i -e 's/gentoo-emergence/gentoo-livecd-2006.1/' \
/etc/X11/gdm/custom.conf
fi