[add] manually shutdown server by testing file /opt/wd/99-Temp/shutdown
This commit is contained in:
parent
6e50da6f8d
commit
b7c656afd3
9
update/shutdown.sh
Normal file
9
update/shutdown.sh
Normal 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user