diff options
Diffstat (limited to 'scripts/poky-qemu-ifup')
-rwxr-xr-x | scripts/poky-qemu-ifup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/poky-qemu-ifup b/scripts/poky-qemu-ifup index e7f689d251..3b2ed7c04a 100755 --- a/scripts/poky-qemu-ifup +++ b/scripts/poky-qemu-ifup | |||
@@ -30,7 +30,8 @@ if [ "x$IFCONFIG" = "x" ]; then | |||
30 | IFCONFIG=/sbin/ifconfig | 30 | IFCONFIG=/sbin/ifconfig |
31 | fi | 31 | fi |
32 | 32 | ||
33 | $IFCONFIG $TAP 192.168.7.1 | 33 | n=$[ `echo $TAP | sed 's/tap//'` + 1 ] |
34 | $IFCONFIG $TAP 192.168.7.$n | ||
34 | 35 | ||
35 | # setup NAT for tap0 interface to have internet access in QEMU | 36 | # setup NAT for tap0 interface to have internet access in QEMU |
36 | IPTABLES=`which iptables` | 37 | IPTABLES=`which iptables` |