#!/bin/sh

# Run the UML process

#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

#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=$ROOTFS
