summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-12 13:35:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:43:48 +0000
commit681499ebfea9a84a4b56c01e053b56ac51370fa1 (patch)
tree76e133780e5bfe6b5bd9119bb2b7bf14c202706e /scripts
parent5d960949394fec199e95609d675047bc8aa40077 (diff)
downloadpoky-681499ebfea9a84a4b56c01e053b56ac51370fa1.tar.gz
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. (From OE-Core rev: 9e00d6b343120496ec0dd72240c7b04e0a8b7eaa) (From OE-Core rev: f5bcd56dcca7daad6aa6b4371d4e331d8ffd11eb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
index 870cb6bcb7..3bd9980ad0 100755
--- a/scripts/runqemu-ifup
+++ b/scripts/runqemu-ifup
@@ -94,7 +94,7 @@ if [ ! -x "$IPTABLES" ]; then
94fi 94fi
95 95
96n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] 96n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ]
97$IFCONFIG $TAP 192.168.7.$n 97$IFCONFIG $TAP 192.168.7.$n netmask 255.255.255.255
98 98
99dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ] 99dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ]
100$ROUTE add -host 192.168.7.$dest $TAP 100$ROUTE add -host 192.168.7.$dest $TAP