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:
parent
8398fd014c
commit
b6fb39f5e5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue