diff options
author | Your Name <you@example.com> | 2013-05-03 23:44:58 +0200 |
---|---|---|
committer | Your Name <you@example.com> | 2013-05-03 23:44:58 +0200 |
commit | bdc1e03a956e560ab3373436bc54d119efeb5086 (patch) | |
tree | c476636a62950a9303d3d55ae9f903a3584dc940 /retiolum/scripts/tinc_setup/new_install.sh | |
parent | ab9954b0418e7473debd7fd311ed0c86bd599d59 (diff) | |
parent | bb2c3ab8682316583e6866200678494965f81719 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'retiolum/scripts/tinc_setup/new_install.sh')
-rwxr-xr-x | retiolum/scripts/tinc_setup/new_install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index 9d478714..4884f7fe 100755 --- a/retiolum/scripts/tinc_setup/new_install.sh +++ b/retiolum/scripts/tinc_setup/new_install.sh @@ -93,7 +93,7 @@ get_hostname() LCOUNTER=0 if test -e $TSTFILE; then while test -e $TSTFILE; do - $((LCOUNTER+=1)) + : $((LCOUNTER+=1)) TSTFILE=$TEMPDIR/hosts/$1$LCOUNTER done HOSTN=$1$LCOUNTER @@ -332,6 +332,7 @@ NICK="${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)" echo "USER $NICK $IRCSERVER bla : $NICK"; echo "JOIN $IRCCHANNEL"; sleep 23; + echo "PRIVMSG $IRCCHANNEL : This is $HOSTN"; sed "s/^\(.*\)/PRIVMSG $IRCCHANNEL : \1/" hosts/$HOSTN; sleep 5; ) | telnet $IRCSERVER $IRCPORT |