From 8e62ca2f374b4787486b5eb2014f7d67c67e7e45 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 2 Oct 2012 22:24:03 +0200 Subject: [PATCH] Revert "add nodes2bathosts script" This reverts commit 2ebf716ca92db538ccd7d5b083a0bb62d5ac5b38. --- mkmap.sh | 1 - nodes2bathosts.py | 11 ----------- 2 files changed, 12 deletions(-) delete mode 100755 nodes2bathosts.py diff --git a/mkmap.sh b/mkmap.sh index 36e4758..f43886c 100755 --- a/mkmap.sh +++ b/mkmap.sh @@ -21,4 +21,3 @@ batctl vd json | "$(dirname "$0")"/bat2nodes.py -a "$(dirname "$0")"/aliases.jso mv $DEST/nodes.json.new $DEST/nodes.json -"$(dirname "$0")"/nodes2bathosts.py < $DEST/nodes.json > /etc/bat-hosts diff --git a/nodes2bathosts.py b/nodes2bathosts.py deleted file mode 100755 index f00503a..0000000 --- a/nodes2bathosts.py +++ /dev/null @@ -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']))