Changeset 06b0211b in mainline for contrib/conf/net-qe.sh
- Timestamp:
- 2013-04-29T11:29:45Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aa2b32c
- Parents:
- ba4799a (diff), df956b9b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/conf/net-qe.sh
rba4799a r06b0211b 1 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 2 18 3 19 case "$1" in 4 20 ne2k) 5 21 shift 6 qemu $@-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.iso22 "${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 7 23 ;; 8 24 e1k) 9 25 shift 10 qemu $@-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.iso26 "${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 11 27 ;; 12 28 rtl8139) 13 29 shift 14 qemu $@-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.iso30 "${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 15 31 ;; 16 32 *)
Note:
See TracChangeset
for help on using the changeset viewer.