2007-03-05 23:39:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2007-03-12 16:50:33 +00:00
|
|
|
if [[ -e /etc/X11/gdm/custom.conf ]]
|
2007-03-05 23:39:48 +00:00
|
|
|
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
|
|
|
|
|
2007-03-12 16:50:33 +00:00
|
|
|
if [[ -e /etc/X11/gdm/gdm.conf ]]
|
2007-03-05 23:39:48 +00:00
|
|
|
then
|
|
|
|
sed -i -e 's/gentoo-emergence/gentoo-livecd-2007.0/' \
|
|
|
|
/etc/X11/gdm/gdm.conf
|
|
|
|
fi
|
|
|
|
|
2007-03-12 16:50:33 +00:00
|
|
|
if [[ -e /etc/conf.d/splash ]]
|
|
|
|
then
|
|
|
|
sed -i -e "/^# SPLASH_TTYS=/ s/^#//" /etc/conf.d/splash
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -e /sbin/splash-functions.sh ]]
|
|
|
|
then
|
|
|
|
sed -i -e 's/type" cachedir "${spl_/type" tmpfs "${spl_/' \
|
|
|
|
/sbin/splash-functions.sh
|
|
|
|
fi
|
|
|
|
|
2007-04-09 14:53:51 +00:00
|
|
|
if [[ -e /etc/conf.d/clock ]]
|
|
|
|
then
|
|
|
|
sed -i -e 's/#TIMEZONE="Factory"/TIMEZONE="UTC"/' /etc/conf.d/clock
|
|
|
|
fi
|
|
|
|
|
2007-03-05 23:39:48 +00:00
|
|
|
gconftool-2 --direct \
|
|
|
|
--config-source xml:readwrite:/usr/livecd/gconf/gconf.xml.defaults \
|
|
|
|
--type string --set /desktop/gnome/background/picture_filename \
|
2007-04-12 15:02:54 +00:00
|
|
|
/usr/share/pixmaps/gentoo-livecd-2007.0/1024x768.png
|
2007-03-05 23:39:48 +00:00
|
|
|
|
2007-04-12 15:15:01 +00:00
|
|
|
# We remove genkernel to save some space on the LiveCD
|
|
|
|
ln -sf /usr/livecd/db /var/db
|
|
|
|
emerge -C genkernel
|
|
|
|
rm /var/db
|
|
|
|
|
2007-03-05 23:39:48 +00:00
|
|
|
case `uname -m` in
|
|
|
|
i?86|x86_64)
|
|
|
|
sed -i 's/DRIVER fbdev/DRIVER vesa/' /usr/share/hwdata/Cards
|
2007-03-13 15:46:44 +00:00
|
|
|
sed -e 's/CONSOLEFONT="default8x16"/CONSOLEFONT="lat1-16"/' \
|
|
|
|
-e '/^#CONSOLETRANSLATION="8859-1_to_uni"/ s/^#//' \
|
|
|
|
-i /etc/conf.d/consolefont
|
2007-03-05 23:39:48 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|