]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
Add wifi-stress script
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 18 May 2010 11:19:43 +0000 (13:19 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 18 May 2010 11:19:43 +0000 (13:19 +0200)
We use only one stress stream. I've tried to use more (two) but in that
case camera controller has been automatically disconnecting from the
wifi network.

build/stress-wifi [new file with mode: 0755]

diff --git a/build/stress-wifi b/build/stress-wifi
new file mode 100755 (executable)
index 0000000..0a3e3d0
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -x
+
+#ssh -tt g204-hpnotebook.local 'netcat -u -l -p 12345 > /dev/null' & p="$p $!"
+ssh -tt wsheee.local 'netcat -u -l -p 12345 > /dev/null' & p="$p $!"
+sleep 0.3
+#ssh -tt wsheee.local 'netcat -u g204-hpnotebook.local 12345 < /dev/zero' & p="$p $!"
+ssh -tt g204-hpnotebook.local 'netcat -u wsheee.local 12345 < /dev/zero' & p="$p $!"
+
+trap "kill $p" SIGINT
+
+wait