mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 18:02:49 +00:00
12 lines
252 B
Bash
12 lines
252 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Wait to see if bitcoind is synced
|
||
|
echo "Checking if device is shutting down..."
|
||
|
if [ ! -f "/tmp/shutting_down" ]; then
|
||
|
echo "Not shutting down!"
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
echo "Device is shutting down... delay and exit failure"
|
||
|
sleep 30s
|
||
|
exit 1
|