-#!/bin/sh -e
+#!/bin/bash -e
#
# Copyright © 2008 Andres Salomon <dilinger@queued.net>
#
deb http://security.debian.org/ lenny/updates main contrib non-free"
LOCAL_APT_MIRROR=
-. functions.sh
+. ./functions.sh
usage()
{
usage
fi
+start_logging $ROOT_DIR
+
check_for_cmds debootstrap || exit 1
if [ -z "${LOCAL_APT_MIRROR}" ]; then
k="http://lunge.mit.edu/~dilinger/debxo-0.2/initramfs-tools_0.92l.2_all.deb
http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb
- http://lunge.mit.edu/~dilinger/debxo-0.3/linux-2.6.25.15_2.6.25.15-147_i386.deb"
+ http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb
+ http://lunge.mit.edu/~dilinger/debxo-0.4/xserver-xorg-video-geode_2.11.0-0.1_i386.deb"
mkdir -p cache
for i in $k; do
pkg=$(basename ${i})
echo $pkgbase hold | (chroot ${ROOT_DIR} dpkg --set-selections)
rm -f ${ROOT_DIR}/${pkg}
done
+# take the geode driver off hold
+echo xserver-xorg-video-geode install | (chroot ${ROOT_DIR} dpkg --set-selections)
# ensure certain modules get loaded during boot
cat >>${ROOT_DIR}/etc/modules<<EOF
scx200_acb
i8042
olpc_battery
+msr
EOF
# install packages
(chroot ${ROOT_DIR} aptitude install -y `grep --invert-match '^#' ${PLIST}`)
-# configure X
-if [ -d ${ROOT_DIR}/etc/X11 ]; then
- cat >${ROOT_DIR}/etc/X11/xorg.conf<<EOF
-# xorg.conf (X.Org X Window System server configuration file)
-
-Section "Monitor"
- Identifier "Configured Monitor"
- HorizSync 30-67
- VertRefresh 48-52
- DisplaySize 152 114
- Mode "1200x900"
- DotClock 57.275
- HTimings 1200 1208 1216 1240
- VTimings 900 905 908 912
- Flags "-HSync" "-VSync"
- EndMode
-EndSection
+# no longer a need for xorg.conf
+rm -f ${ROOT_DIR}/etc/X11/xorg.conf
-Section "Screen"
- Identifier "Default Screen"
- Monitor "Configured Monitor"
-EndSection
-EOF
+# key bindings/mappings
+if [ -d ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/ ]; then
+ cp 30-keymap-olpc.fdi ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/
fi
# configure kdm, kde