summaryrefslogtreecommitdiff
path: root/invoke_session_debian
diff options
context:
space:
mode:
Diffstat (limited to 'invoke_session_debian')
-rwxr-xr-xinvoke_session_debian4
1 files changed, 4 insertions, 0 deletions
diff --git a/invoke_session_debian b/invoke_session_debian
index c344708..84c05d9 100755
--- a/invoke_session_debian
+++ b/invoke_session_debian
@@ -3,6 +3,8 @@
# Hack for now until lava-test-shell is smart enough to know it's dispatcher ip
gateway=$1
+listener_addr=$2
+listener_port=$3
echo "Target's Gateway: $gateway"
if ! grep 'invoke_session' /etc/rc.local
@@ -37,6 +39,8 @@ mkdir -p /run
mkdir -p /run/hacking
echo $$ > /run/hacking/hacking.pid
+echo "${ip_addr}" | nc "${listener_addr}" "${listener_port}"
+
#suspend in a way that is portable across shells and doesn't involve a busy-wait
pid=
trap 'kill $pid