1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#!/bin/sh
# Run the UML process
#package defaults
#DEBIAN=../debian
#VERSION=`cat $DEBIAN/changelog | head -1 | sed 's/^.*(\(.\)).*$/\1/'`
#PACKAGE=../../quake2-data_${VERSION}_all.deb
# locations of files
#STORAGE=/home/jaq/bucket
#names of the files
#SHAREFILE=q2-314-demo-x86.exe
#POINTFILE=q2-3.20-x86-full-ctf.exe
#the pathname of the UML kernel
UML=$HOME/src/linux-2.4.17-um9/linux
#name of the ro root fs
ROOTFS=$HOME/src/linux-2.4.17-um9/rootfs-unstable
#name of the cow fs - created each time this is run
COWFS=cow_fs
#ip of the host end of the network connection
IP=10.0.1.1
echo removing old cowfs
rm -f $COWFS
rm -rf /tmp/uml/tera
su -c "rm /dev/net/tun"
echo booting the uml machine
PATH=$PATH:/usr/lib/uml $UML eth0=tuntap,,,$IP ubd0=$COWFS,$ROOTFS umid=tera
#PATH=$PATH:/usr/lib/uml $UML eth0=tuntap,,,$IP ubd0=$ROOTFS
|