wok-next view mirror-tools/stuff/usr/share/mirror-host/boot/lguest-slitaz @ rev 5974

mirror-tools: fix FSH
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 09 09:37:59 2010 +0200 (2010-08-09)
parents
children
line source
1 #!/bin/sh
3 tty=tty; [ -n "$1" ] && tty=$1
4 export TERM=$tty
5 shift
7 rootfs="--initrd=/boot/rootfs-lguest.gz"
8 [ -n "$1" ] && rootfs="--block=$1 root=/dev/vda2"
9 shift
11 net="--tunnet=192.168.0.1"
12 case "$1" in
13 192*) net="--tunnet=$1"; shift;;
14 esac
16 args="screen=text lang=fr_FR kmap=fr-latin1 sound=noconf"
17 [ -n "$1" ] && args=$@
19 /sbin/modprobe lg
20 /usr/bin/lguest 512 /boot/vmlinuz-2.6.25.5-lguest \
21 $net $rootfs $args > /dev/$tty < /dev/$tty 2>&1