wok-4.x view mirror-tools/stuff/host/boot/lguest-slitaz @ rev 5973
mirror-tools: add host scripts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 08 19:48:39 2010 +0200 (2010-08-08) |
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