summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorLassulus <Lassulus@googlemail.com>2011-05-24 14:58:17 +0200
committerLassulus <Lassulus@googlemail.com>2011-05-24 14:58:17 +0200
commitf1ede8008c43a772eae2c0584256e25947105b6f (patch)
treef31c583d34e396e2aa36256f5dc1923b7f8710ea /.scripts
parent525f081a54230b1aafd2d1675bef21afbbfdf1b0 (diff)
krebs is now enterprise ;)
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/tinc_multicast/retiolum.py6
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