diff options
author | krebs <krebs@UTART> | 2011-05-04 11:41:00 -1100 |
---|---|---|
committer | krebs <krebs@UTART> | 2011-05-04 11:45:07 -1100 |
commit | 548e5e53d3bcfec31c1fb89d61da3405aec50924 (patch) | |
tree | 34a96f0dc93e3f9f706d2e92ea43d243180af625 /modules/retiolum/install.sh | |
parent | b9ee190d96de5809419704e53551c0d2ed820818 (diff) |
update retiolum build scripts for debian/legacy
build_debian.sh: update to work with legacy (version 5) debian
install.sh: fixed python script code, removed "with" statement
Diffstat (limited to 'modules/retiolum/install.sh')
-rwxr-xr-x | modules/retiolum/install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/retiolum/install.sh b/modules/retiolum/install.sh index 5fa1d4a5..7942b703 100755 --- a/modules/retiolum/install.sh +++ b/modules/retiolum/install.sh @@ -47,7 +47,7 @@ CHANNEL = '#tincspasm' HOST='irc.freenode.net' FILE="/etc/tinc/retiolum/hosts/$myname" PORT=6667 -NICK= "$myname"+str(random.randint(23,666)) +NICK= "$myname_"+str(random.randint(23,666)) sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.connect((HOST,PORT)) @@ -56,9 +56,9 @@ sock.send("NICK %s\r\n" % NICK) sock.send("USER %s %s bla : %s\r\n" %(NICK,HOST,NICK)) sock.send("JOIN %s\r\n" % CHANNEL) time.sleep(23) -with open(FILE,'r') as f: - a = [ sock.send("PRIVMSG %s : %s" % ( CHANNEL,line)) for line in f] - time.sleep(5) #because irc is so lazy +f = open(FILE,'r') +a = [ sock.send("PRIVMSG %s : %s" % ( CHANNEL,line)) for line in f] +time.sleep(5) #because irc is so lazy print "closing socket" sock.close() EOF |