diff options
author | Neil Williams <neil.williams@linaro.org> | 2016-05-03 09:49:14 +0000 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2016-05-03 09:49:14 +0000 |
commit | defeaf0263acf12e5bc1aad13e0d31d8ffbd3946 (patch) | |
tree | c47e5b0ad82ca0a72b5511615be163e9b1a93f8b | |
parent | ee71728f0102c2e96e2f8d41eb6bfd6510354bd6 (diff) | |
parent | 2ca81099f61ec6d9fb3fc96601fc06c90d516a1d (diff) |
Merge "Switch from using python-irc to a netcat call."
-rwxr-xr-x | invoke_session_debian | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/invoke_session_debian b/invoke_session_debian index a1da3ed..963adf6 100755 --- a/invoke_session_debian +++ b/invoke_session_debian @@ -45,16 +45,9 @@ EOF IRC_AVAILABLE=false if [ ! -z "${IRC_USER}" ]; then - if apt-get install -qq python-irc; then - IRC_AVAILABLE=true - TMP_IRC_USER=hs-${RANDOM} - # make a unique user - cat <<EOF | python /usr/share/doc/python-irc/examples/irccat2.py ${IRC_SERVER} ${TMP_IRC_USER} ${IRC_USER} -Your hacking session is now ready -Please connect to: -${SSH_COMMAND} -EOF - fi + IRC_AVAILABLE=true + TMP_IRC_USER=hs-${RANDOM} + echo -e "\n\nNICK ${TMP_IRC_USER}\nUSER ${TMP_IRC_USER} 8 * :LAVA Hacking\nPRIVMSG ${IRC_USER} : ${SSH_COMMAND}\nQUIT \n" | nc -i 1 i${IRC_SERVER} 6667 fi if [ ! -z "${NOTIFY_URL}" ]; then if apt-get install -qq wget; then |