summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-03-17 08:41:08 +0100
committermakefu <github@syntax-fehler.de>2014-03-17 08:41:08 +0100
commit9c7c3e915ddf3b255aab5c543c10b34f0dbc17ff (patch)
tree558bb9d672892c708773ec48a4d816ea95f2a1d7
parent2ca3adc032dc15d389e3f785aeec3fde476c3f7e (diff)
filehooker: make NICK customizable in /krebs/lib/network
-rw-r--r--filehooker/root-image/krebs/lib/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/filehooker/root-image/krebs/lib/network b/filehooker/root-image/krebs/lib/network
index df2ae153..9863a803 100644
--- a/filehooker/root-image/krebs/lib/network
+++ b/filehooker/root-image/krebs/lib/network
@@ -89,7 +89,7 @@ send_irc(){
IRCCHANNEL=${IRCCHANNEL:-"#krebs_incoming"}
IRCSERVER=${IRCSERVER:-"irc.freenode.net"}
IRCPORT=${IRCPORT:-6667}
- NICK="${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)"
+ NICK="${NICK:-${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)}"
info "starting irc connect as $NICK"
( echo "NICK $NICK";
echo "USER $NICK $IRCSERVER bla : $NICK";