aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-08-11 19:34:33 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-08-11 19:34:33 +0000
commitb6fb39f5e592386f6c0d0884c27cb4ed07189cf0 (patch)
treec98033e17e55f95b713f27cd129976b1d5b1d6d3 /scripts
parentUpdate gconf settings for the wallpaper. (diff)
downloadreleng-b6fb39f5e592386f6c0d0884c27cb4ed07189cf0.tar.gz
releng-b6fb39f5e592386f6c0d0884c27cb4ed07189cf0.tar.bz2
releng-b6fb39f5e592386f6c0d0884c27cb4ed07189cf0.zip
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/2006.1/livecd.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/2006.1/livecd.sh b/scripts/2006.1/livecd.sh
index d6dd7b33..a3794160 100644
--- a/scripts/2006.1/livecd.sh
+++ b/scripts/2006.1/livecd.sh
@@ -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