nas related changes + some updates

This commit is contained in:
Dirk Alders 2025-01-06 15:08:11 +01:00
parent aa5f642398
commit 9929539860
8 changed files with 46 additions and 1 deletions

6
.gitmodules vendored
View File

@ -1,3 +1,9 @@
[submodule "nagios"]
path = nagios.src
url = https://git.mount-mockery.de/pylib/nagios.git
[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

View File

@ -3,7 +3,12 @@
git config --global user.name "Dirk Alders"
git config --global user.email dirk@mount-mockery.de
#
git config --global pull.rebase false
#
git config --global diff.tool meld
git config --global merge.tool meld
git config --global merge.tool.cmd 'meld --auto-merge "$LOCAL" "$BASE" "$REMOTE" --output "$MERGED"'
git config --global --add difftool.prompt false
git config --global pull.rebase false
#
git config --global config credential.helper store

4
mqtt_sniffer Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
#
/opt/mqtt_sniffer/venv/bin/python /opt/mqtt_sniffer/mqtt_sniffer.py $*

16
mqtt_test_smarthome Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
clear
#!/bin/sh
#
for s in $(tmux list-sessions -F '#{session_name}'); do
p=$(tmux list-panes -F '#{pane_tty}' -t "$s")
if [ "$p" = "$(tty)" ]; then
# Session already running
exit 0
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"

3
nas_halt Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
#
ssh nas sudo /usr/sbin/shutdown -P 5

4
nas_wake Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
#
wakeonlan 38:ea:a7:a6:03:9d

6
pyrip Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
#
BASEDIR=$(dirname $0)
$BASEDIR/pyrip.src/venv/bin/python $BASEDIR/pyrip.src/pyrip.py $*

1
pyrip.src Submodule

@ -0,0 +1 @@
Subproject commit 48dc481f268e1ecdcd8d5e0126df553781e40a78