summaryrefslogtreecommitdiff
path: root/farm/magnus/tftpd-magnus
blob: 4ec30e20e2fd2e360826f95fefe2addf8cf9dae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

TARGET=${0#*-}

case "$1" in
start)
	ssh $TARGET-mgr qemu-system-i386 -machine none -net nic,vlan=0 \
	    -net tap,vlan=0,ifname=tap0,script=no,downscript=no \
	    -net user,vlan=0,tftp=/home/user/ &
	;;

stop)
	ssh $TARGET-mgr killall qemu-system-i386
	;;

*)
	echo "Usage: $0 (start|stop)"
	exit 1
esac