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_localhost b/mqtt_localhost deleted file mode 100755 index d5a6807..0000000 --- a/mqtt_localhost +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -clear -/opt/mqtt_sniffer/venv/bin/python /opt/mqtt_sniffer/mqtt_sniffer.py -f localhost -n diff --git a/mqtt_smarthome b/mqtt_smarthome index 360f34c..05c9dda 100755 --- a/mqtt_smarthome +++ b/mqtt_smarthome @@ -12,5 +12,5 @@ for s in $(tmux list-sessions -F '#{session_name}'); do fi done -tmux attach-session -t mqtt_smarthome || tmux new-session -s mqtt_smarthome "/opt/mqtt_sniffer/venv/bin/python /opt/mqtt_sniffer/mqtt_sniffer.py -f mqtt.home" +tmux attach-session -t mqtt_smarthome || tmux new-session -s mqtt_smarthome "~/my_apps/mqtt_sniffer/venv/bin/python ~/my_apps/mqtt_sniffer/mqtt_sniffer.py -f mqtt.home" diff --git a/mqtt_sniffer b/mqtt_sniffer index 0d23514..ef2dead 100755 --- a/mqtt_sniffer +++ b/mqtt_sniffer @@ -1,4 +1,4 @@ #!/bin/bash # -/opt/mqtt_sniffer/venv/bin/python /opt/mqtt_sniffer/mqtt_sniffer.py $* +~/my_apps/mqtt_sniffer/mqtt_sniffer $* diff --git a/mqtt_test_smarthome b/mqtt_test_smarthome index 0c30de5..13253a5 100755 --- a/mqtt_test_smarthome +++ b/mqtt_test_smarthome @@ -12,5 +12,5 @@ for s in $(tmux list-sessions -F '#{session_name}'); do fi done -tmux attach-session -t mqtt_test_smarthome || tmux new-session -s mqtt_test_smarthome "/opt/mqtt_sniffer/venv/bin/python /opt/mqtt_sniffer/mqtt_sniffer.py -f mqtt.home -p 1884 -n" +tmux attach-session -t mqtt_test_smarthome || tmux new-session -s mqtt_test_smarthome "~/my_apps/mqtt_sniffer/venv/bin/python ~/my_apps/mqtt_sniffer/mqtt_sniffer.py -f mqtt.home -p 1884 -n" 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("