diff options
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-x | scripts/poky-qemu-internal | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 0cf4ced707..f1aa43945a 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -91,7 +91,10 @@ release_lock() { | |||
91 | fi | 91 | fi |
92 | } | 92 | } |
93 | 93 | ||
94 | KERNEL_NETWORK_CMD="ip=192.168.7.2::192.168.7.1:255.255.255.0" | 94 | n1=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] |
95 | n2=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ] | ||
96 | |||
97 | KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0" | ||
95 | QEMU_TAP_CMD="-net tap,vlan=0,ifname=$TAP,script=no,downscript=no" | 98 | QEMU_TAP_CMD="-net tap,vlan=0,ifname=$TAP,script=no,downscript=no" |
96 | QEMU_NETWORK_CMD="-net nic,vlan=0 $QEMU_TAP_CMD" | 99 | QEMU_NETWORK_CMD="-net nic,vlan=0 $QEMU_TAP_CMD" |
97 | KERNCMDLINE="mem=$QEMU_MEMORY" | 100 | KERNCMDLINE="mem=$QEMU_MEMORY" |