santiago / mqtt_shutdown_listen.sh
0 喜欢
0 派生
1 文件
最后活跃于
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 |
上一页
下一页