~sheosi/helenos/lua

« back to all changes in this revision

Viewing changes to contrib/conf/net-qe.sh

  • Committer: Sergio Tortosa (sheosi)
  • Date: 2013-12-22 14:13:23 UTC
  • mfrom: (2032.1.12 mainline)
  • Revision ID: sertorbe@gmail.com-20131222141323-gbiqm4j2w9sbjty5
MergedĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
if [ -z "${QEMU_BINARY}" ] ; then
4
 
        QEMU_BINARY="`which --tty-only qemu 2> /dev/null`"
5
 
fi
6
 
 
7
 
if [ -z "${QEMU_BINARY}" ] ; then
8
 
        QEMU_BINARY="`which --tty-only qemu-system-x86_64 2> /dev/null`"
9
 
fi
10
 
 
11
 
if [ -z "${QEMU_BINARY}" ] ; then
12
 
        QEMU_BINARY="`which --tty-only qemu-system-i386 2> /dev/null`"
13
 
fi
14
 
 
15
 
if [ -z "${QEMU_BINARY}" ] ; then
16
 
        echo "QEMU binary not found"
17
 
fi
18
 
 
19
 
case "$1" in
20
 
        ne2k)
21
 
                shift
22
 
                "${QEMU_BINARY}" "$@" -device ne2k_isa,irq=5,vlan=0 -net user -boot d -redir udp:8080::8080 -redir udp:8081::8081 -redir tcp:8080::8080 -redir tcp:8081::8081 -cdrom image.iso
23
 
                ;;
24
 
        e1k)
25
 
                shift
26
 
                "${QEMU_BINARY}" "$@" -device e1000,vlan=0 -net user -boot d -redir udp:8080::8080 -redir udp:8081::8081 -redir tcp:8080::8080 -redir tcp:8081::8081 -cdrom image.iso
27
 
                ;;
28
 
        rtl8139)
29
 
                shift
30
 
                "${QEMU_BINARY}" "$@" -device rtl8139,vlan=0 -net user -boot d -redir udp:8080::8080 -redir udp:8081::8081 -redir tcp:8080::8080 -redir tcp:8081::8081 -cdrom image.iso
31
 
                ;;
32
 
        *)
33
 
                echo "Usage: $0 {ne2k|e1k|rtl8139}"
34
 
esac