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 | 335452f851175d5e9a8b5aca05ceca02663bdf2a (patch) | |
tree | 24377ae6a89dfe922fd89640883a332f54a9cb8d /retiolum/hosts/.scripts | |
parent | 43a1bf8296bd158bab0b7957edf70ef4af23efa4 (diff) |
krebs is now enterprise ;)
Diffstat (limited to 'retiolum/hosts/.scripts')
-rwxr-xr-x | retiolum/hosts/.scripts/tinc_multicast/retiolum.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/retiolum/hosts/.scripts/tinc_multicast/retiolum.py b/retiolum/hosts/.scripts/tinc_multicast/retiolum.py index a89b3594..51c42461 100755 --- a/retiolum/hosts/.scripts/tinc_multicast/retiolum.py +++ b/retiolum/hosts/.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 |