wok-next view linux-dev/stuff/vm-uml.in @ rev 21592

updated dkms (2.1.1.2 -> 2.8.2)
author Hans-G?nter Theisgen
date Wed Jun 24 07:35:54 2020 +0100 (2020-06-24)
parents
children
line source
1 #!/bin/sh
3 # /etc/inittab: "tty21::respawn:/bin/su -c '/boot/vm-uml 1 /boot/guests/slitaz.img 2 512m' nobody"
4 n=${1:-0}
5 tap=tap$n
6 args="rw root=/dev/null"
7 dev="initrd=$(ls -r /boot/rootfs*.gz | sed q)"
8 if [ -n "$2" ]; then
9 args="ro root=620${3:-1} screen=text sound=noconf"
10 dev="ubd0=$2"
11 fi
13 cd $(dirname $0)
14 ifconfig $tap 192.168.$n.1
15 ./linux-uml-@VERSION@ $dev mem=${4:-512m} fakehd fake_ide ubd=3 con0=fd:0,fd:1 \
16 con=pts ssl=pts eth0=tuntap,$tap,fe:f0:00:00:00:0$n,192.168.$n.1 \
17 $args cpuinfo=$(sed '/model name/!d;s/.*: //;s/ /_/g;q' /proc/cpuinfo)