summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-ifup
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-qemu-ifup')
-rwxr-xr-xscripts/poky-qemu-ifup2
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
93fi 93fi
94 94
95n=$[ `echo $TAP | sed 's/tap//'` + 1 ] 95n=$[ (`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