diff --git a/.gitmodules b/.gitmodules index 9dff86e..cc38548 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,6 +4,3 @@ [submodule "pyrip"] path = pyrip url = https://git.mount-mockery.de/application/pyrip.git -[submodule "pyrip.src"] - path = pyrip.src - url = https://git.mount-mockery.de/application/pyrip.git diff --git a/loggy b/loggy new file mode 100755 index 0000000..daea622 --- /dev/null +++ b/loggy @@ -0,0 +1,4 @@ +#!/bin/bash +# +~/my_apps/loggy/loggy $* + diff --git a/mqtt_sniffer b/mqtt_sniffer index 5fa3ebc..ef2dead 100755 --- a/mqtt_sniffer +++ b/mqtt_sniffer @@ -1,4 +1,4 @@ #!/bin/bash # -~/my_apps/mqtt_sniffer/venv/bin/python ~/my_apps/mqtt_sniffer/mqtt_sniffer.py $* +~/my_apps/mqtt_sniffer/mqtt_sniffer $* diff --git a/netst b/netst index 07d7d6a..5dcc8b0 100755 --- a/netst +++ b/netst @@ -1,6 +1,4 @@ #!/bin/bash # -BASEDIR=$(dirname $0) - -$BASEDIR/netst.src/venv/bin/python $BASEDIR/netst.src/netst.py $* +~/my_apps/netst/netst $* diff --git a/netst.src/netst.py b/netst.src/netst.py deleted file mode 100644 index 9d201bd..0000000 --- a/netst.src/netst.py +++ /dev/null @@ -1,67 +0,0 @@ -import dns.resolver -import ifcfg -import json -import socket -import struct -import sys -import time - -interfaces = ifcfg.interfaces() - -def exit_device(): - print("Possible devices:", ", ".join(interfaces.keys())) - sys.exit(1) - - -def gateway(device): - with open("/proc/net/route") as fh: - # skip header - next(fh) - for line in fh: - routes = line.strip().split() - if routes[0] == device: - destination = socket.inet_ntoa(struct.pack("