diff options
author | Lassulus <Lassulus@googlemail.com> | 2011-05-24 14:58:17 +0200 |
---|---|---|
committer | Lassulus <Lassulus@googlemail.com> | 2011-05-24 14:58:17 +0200 |
commit | f1ede8008c43a772eae2c0584256e25947105b6f (patch) | |
tree | f31c583d34e396e2aa36256f5dc1923b7f8710ea /.scripts/tinc_multicast/retiolum.py | |
parent | 525f081a54230b1aafd2d1675bef21afbbfdf1b0 (diff) |
krebs is now enterprise ;)
Diffstat (limited to '.scripts/tinc_multicast/retiolum.py')
-rwxr-xr-x | .scripts/tinc_multicast/retiolum.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.scripts/tinc_multicast/retiolum.py b/.scripts/tinc_multicast/retiolum.py index a89b3594..51c42461 100755 --- a/.scripts/tinc_multicast/retiolum.py +++ b/.scripts/tinc_multicast/retiolum.py @@ -262,6 +262,7 @@ parser.add_option("-n", "--netname", dest="netname", help="the netname of the ti parser.add_option("-H", "--hostname", dest="hostname", default="default" , help="your nodename, if not given, it will try too read it from tinc.conf") parser.add_option("-d", "--debug", dest="debug", default="0", help="debug level: 0,1,2,3 if empty debug level=0") parser.add_option("-g", "--ghost", action="store_true", dest="ghost", default=False, help="deactivates active sending, keeps you anonymous in the public network") +parser.add_option("-T", "--Tinc", action="store_true", dest="tinc", default=False, help="starts tinc with this script") (option, args) = parser.parse_args() if option.netname == None: @@ -284,9 +285,10 @@ level = LEVELS.get(level_name, logging.NOTSET) logging.basicConfig(level=level) get_hostfiles(netname, "http://vpn.miefda.org/hosts.tar.gz", "http://vpn.miefda.org/hosts.md5") - tar = subprocess.call(["tar -xzf /etc/tinc/" + netname + "/hosts/hosts.tar.gz -C /etc/tinc/" + netname + "/hosts/"], shell=True) -start_tincd = subprocess.call(["tincd -n " + netname ],shell=True) + +if option.tinc != false: + start_tincd = subprocess.call(["tincd -n " + netname ],shell=True) sendfifo = Queue.Queue() #sendtext authfifo = Queue.Queue() #Stage{1, 2, 3} hostname ip enc_data |