diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-12 13:35:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-12 13:37:10 +0000 |
commit | 9e00d6b343120496ec0dd72240c7b04e0a8b7eaa (patch) | |
tree | 5e4c3c08c034e5bb4fc139c92266c18bbd9be973 /scripts/runqemu-ifup | |
parent | 07f94fa1d661d38b775ce2d99b84e5610c369392 (diff) | |
download | openembedded-core-9e00d6b343120496ec0dd72240c7b04e0a8b7eaa.tar.gz openembedded-core-9e00d6b343120496ec0dd72240c7b04e0a8b7eaa.tar.bz2 openembedded-core-9e00d6b343120496ec0dd72240c7b04e0a8b7eaa.tar.xz openembedded-core-9e00d6b343120496ec0dd72240c7b04e0a8b7eaa.zip |
scripts/runqemu-ifup: Ensure netmask is set correctly
Without this the command will add a route for the subnet 192.168.7.0 which
means multiple qemu instances can't operate correctly since all but the last
one will be masked out.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-ifup')
-rwxr-xr-x | scripts/runqemu-ifup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index 870cb6bcb..3bd9980ad 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup @@ -94,7 +94,7 @@ if [ ! -x "$IPTABLES" ]; then fi n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] -$IFCONFIG $TAP 192.168.7.$n +$IFCONFIG $TAP 192.168.7.$n netmask 255.255.255.255 dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ] $ROUTE add -host 192.168.7.$dest $TAP |