slitaz-dev-tools view mirror-tools/usr/share/mirror-host/boot/lguest-slitaz @ rev 4

Starting to add mirror-tools. Add etc. home. and usr so far.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Feb 24 01:03:48 2011 +0000 (2011-02-24)
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