[add] manually shutdown server by testing file /opt/wd/99-Temp/shutdown

This commit is contained in:
gitea 2023-08-22 21:23:11 +08:00
parent 6e50da6f8d
commit b7c656afd3

9
update/shutdown.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# code=`cat /opt/wd/99-Temp/shutdown.txt`
if [[ -f "/opt/wd/99-Temp/shutdown" ]]; then
poweroff
fi