aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-11-13 22:06:39 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-11-13 22:06:39 +0000
commita70e01cc2ddb541dfc0543ff8bace33522803dc1 (patch)
treed2d2efb0c9362aa84cb4f994d6e4a5e6e60afc3d /scripts
parentAdded net-misc/rdesktop to Live*D media specs for bug #188258. (diff)
downloadreleng-a70e01cc2ddb541dfc0543ff8bace33522803dc1.tar.gz
releng-a70e01cc2ddb541dfc0543ff8bace33522803dc1.tar.bz2
releng-a70e01cc2ddb541dfc0543ff8bace33522803dc1.zip
Initial copy of the 2007.0 livecd.sh fsscript to 2007.1 for use.
svn path=/trunk/; revision=382
Diffstat (limited to 'scripts')
-rw-r--r--scripts/2007.1/livecd.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/2007.1/livecd.sh b/scripts/2007.1/livecd.sh
new file mode 100644
index 00000000..df8df05c
--- /dev/null
+++ b/scripts/2007.1/livecd.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+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-2007.0/' \
+ /etc/X11/gdm/custom.conf
+fi
+
+if [[ -e /etc/X11/gdm/gdm.conf ]]
+then
+ sed -i -e 's/gentoo-emergence/gentoo-livecd-2007.0/' \
+ /etc/X11/gdm/gdm.conf
+fi
+
+if [[ -e /etc/conf.d/splash ]]
+then
+ sed -i -e "/^# SPLASH_TTYS=/ s/^#//" /etc/conf.d/splash
+fi
+
+if [[ -e /etc/conf.d/clock ]]
+then
+ sed -i -e 's/#TIMEZONE="Factory"/TIMEZONE="UTC"/' /etc/conf.d/clock
+fi
+
+gconftool-2 --direct \
+ --config-source xml:readwrite:/usr/livecd/gconf/gconf.xml.defaults \
+ --type string --set /desktop/gnome/background/picture_filename \
+ /usr/share/pixmaps/gentoo-livecd-2007.0/1024x768.png
+
+# We remove genkernel to save some space on the LiveCD
+ln -sf /usr/livecd/db /var/db
+emerge -C genkernel
+rm /var/db
+
+case `uname -m` in
+ i?86|x86_64)
+ sed -i 's/DRIVER fbdev/DRIVER vesa/' /usr/share/hwdata/Cards
+ sed -e 's/CONSOLEFONT="default8x16"/CONSOLEFONT="lat1-16"/' \
+ -e '/^#CONSOLETRANSLATION="8859-1_to_uni"/ s/^#//' \
+ -i /etc/conf.d/consolefont
+ ;;
+esac
+