From b7c656afd3e845511f263dae7421569e0342c9bc Mon Sep 17 00:00:00 2001 From: gitea Date: Tue, 22 Aug 2023 21:23:11 +0800 Subject: [PATCH] [add] manually shutdown server by testing file /opt/wd/99-Temp/shutdown --- update/shutdown.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 update/shutdown.sh diff --git a/update/shutdown.sh b/update/shutdown.sh new file mode 100644 index 0000000..7df5ed4 --- /dev/null +++ b/update/shutdown.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# code=`cat /opt/wd/99-Temp/shutdown.txt` + +if [[ -f "/opt/wd/99-Temp/shutdown" ]]; then + poweroff +fi + +