santiago / mqtt_shutdown_listen.sh
0 curtidas
0 bifurcações
1 arquivos
Última atividade
Simple script listens to a MQTT value change and shutdown the machine
1 | #!/usr/bin/env zsh |
2 | |
3 | |
4 | if [ -z "$RASPISTUFF_DIR" ];then |
5 | export RASPISTUFF_DIR="$(cd "$(dirname "$(readlink -f "${(%):-%x}")")" && pwd)" |
6 | fi |
7 | |
8 | |
9 | cd $RASPISTUFF_DIR |
Próximo
Anterior