From 9c7c3e915ddf3b255aab5c543c10b34f0dbc17ff Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 17 Mar 2014 08:41:08 +0100 Subject: filehooker: make NICK customizable in /krebs/lib/network --- filehooker/root-image/krebs/lib/network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filehooker/root-image') 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"; -- cgit v1.2.3