Revert "add nodes2bathosts script"

This reverts commit 2ebf716ca9.
This commit is contained in:
Nils Schneider 2012-10-02 22:24:03 +02:00
parent be7b04234e
commit 8e62ca2f37
2 changed files with 0 additions and 12 deletions

View file

@ -21,4 +21,3 @@ batctl vd json | "$(dirname "$0")"/bat2nodes.py -a "$(dirname "$0")"/aliases.jso
mv $DEST/nodes.json.new $DEST/nodes.json mv $DEST/nodes.json.new $DEST/nodes.json
"$(dirname "$0")"/nodes2bathosts.py < $DEST/nodes.json > /etc/bat-hosts

View file

@ -1,11 +0,0 @@
#!/usr/bin/env python3
import json
import sys
nodes = json.load(sys.stdin)
for node in nodes['nodes']:
if node['name']:
for mac in node['macs'].split(','):
print("%s %s" % (mac.strip(), node['name']))