santiago / mqtt_shutdown_listen.sh

0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 1747055737
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
Новіше Пізніше