diff options
Diffstat (limited to 'farm/magnus/tftpd-magnus')
-rwxr-xr-x | farm/magnus/tftpd-magnus | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/farm/magnus/tftpd-magnus b/farm/magnus/tftpd-magnus new file mode 100755 index 0000000..4ec30e2 --- /dev/null +++ b/farm/magnus/tftpd-magnus @@ -0,0 +1,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 |