diff options
Diffstat (limited to 'scripts/poky-qemu-ifup')
-rwxr-xr-x | scripts/poky-qemu-ifup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/poky-qemu-ifup b/scripts/poky-qemu-ifup index 68d8d37475..e248a27106 100755 --- a/scripts/poky-qemu-ifup +++ b/scripts/poky-qemu-ifup | |||
@@ -92,7 +92,7 @@ if [ "x$IFCONFIG" = "x" ]; then | |||
92 | IFCONFIG=/sbin/ifconfig | 92 | IFCONFIG=/sbin/ifconfig |
93 | fi | 93 | fi |
94 | 94 | ||
95 | n=$[ `echo $TAP | sed 's/tap//'` + 1 ] | 95 | n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] |
96 | $IFCONFIG $TAP 192.168.7.$n | 96 | $IFCONFIG $TAP 192.168.7.$n |
97 | 97 | ||
98 | # setup NAT for tap0 interface to have internet access in QEMU | 98 | # setup NAT for tap0 interface to have internet access in QEMU |