diff options
author | Neil Williams <neil.williams@linaro.org> | 2016-04-07 14:54:14 +0100 |
---|---|---|
committer | Neil Williams <neil.williams@linaro.org> | 2016-04-07 16:43:22 +0100 |
commit | 2ca81099f61ec6d9fb3fc96601fc06c90d516a1d (patch) | |
tree | 17a195e0a049173fc118aa0a96a4645b7b040c4a | |
parent | ab9d05a06a3e7cbda2e76ae19349543c3702e6ed (diff) |
Switch from using python-irc to a netcat call.
LAVA-325 - python-irc is gaining extraneous dependencies, so
simplify the IRC notification with a simple call to netcat.
Change-Id: I7284dc136d1ed85f0abb6fd5337f0c003353b913
-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 d095dfc..8ce0c98 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 |