mynode/rootfs/standard/usr/bin/is_not_shutting_down.sh

12 lines
251 B
Bash
Raw Normal View History

2020-04-23 02:59:37 +00:00
#!/bin/bash
# Wait to see if bitcoin is synced
2020-04-23 02:59:37 +00:00
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