SHA-1:b7fcbd9076903bb98474a7b6c5b4d860ece09bcd, from <http://d-i.alioth.debian.org/pub/etch/babelbox/babelbox.tgz>
28 lines
809 B
Bash
Executable file
28 lines
809 B
Bash
Executable file
#! /bin/sh
|
|
|
|
# Script run at the end of the installation (as set in preseed.cfg); prepares
|
|
# to boot into the installed system, briefly log into Gnome and then reboot.
|
|
|
|
set -e
|
|
|
|
TAB=" "
|
|
|
|
: >/target/BABELBOX
|
|
cp /hd-media/srv/babelbox/cronscript /target/root
|
|
echo "@reboot root /root/cronscript; reboot" >>/target/etc/crontab
|
|
|
|
mount /dev/discs/disc0/part1 /hd-media -o remount,rw
|
|
|
|
sed -i "s/^default[[:space:]].*$/default${TAB}${TAB}3/" /hd-media/boot/grub/menu.lst
|
|
|
|
if [ -d /target/etc/gdm ] ; then
|
|
# Enable automatic login (chroot because of bug in busybox sed)
|
|
chroot /target sed -i "/^\[daemon\]/a\AutomaticLoginEnable=true\nAutomaticLogin=debian" /etc/gdm/gdm.conf
|
|
fi
|
|
|
|
# This is probably no longer needed
|
|
#if [ -d /target/etc/X11 ] ; then
|
|
# cp /hd-media/srv/babelbox/xorg.conf /target/etc/X11/
|
|
#fi
|
|
|
|
exit 0
|