diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-10 10:28:09 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-10 10:45:55 +0100 |
commit | 8e43883f97f76857bd4cc85de544a09c6cceb24e (patch) | |
tree | c99c088548f785d2c0e65d164bd8e7d2960ff1c2 /scripts/poky-qemu-ifup | |
parent | 3dd36ababd9acf0d5695b424cc145a482b6f3617 (diff) | |
download | openembedded-core-8e43883f97f76857bd4cc85de544a09c6cceb24e.tar.gz openembedded-core-8e43883f97f76857bd4cc85de544a09c6cceb24e.tar.bz2 openembedded-core-8e43883f97f76857bd4cc85de544a09c6cceb24e.zip |
scrtips/poky-qemu: Fix network interface device numbering
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
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 IFCONFIG=/sbin/ifconfig fi -n=$[ `echo $TAP | sed 's/tap//'` + 1 ] +n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] $IFCONFIG $TAP 192.168.7.$n # setup NAT for tap0 interface to have internet access in QEMU |