import babelbox-squeeze.tgz (thanks, tolimar)

SHA-1:1e24d3e7c54ddffb96423a6f61e565d078b97a7a, from
<http://d-i.debian.org/babelbox/babelbox-squeeze.tgz>
This commit is contained in:
Luca Capello 2012-07-03 17:03:15 -06:00
parent 86b9d8034c
commit 2879ec58c2
7 changed files with 82 additions and 85 deletions

View file

@ -5,24 +5,18 @@
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
sed -i "s/^set default=.*$/set default=\"3\"/" /hd-media/boot/grub/grub.cfg
if [ -d /target/etc/gdm ] ; then
if [ -d /target/etc/gdm3 ] ; 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
chroot /target sed -i "/^\[daemon\]/a\AutomaticLoginEnable = true\nAutomaticLogin = debian" /etc/gdm3/daemon.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