mynode/rootfs/standard/usr/bin/is_not_shutting_down.sh
2021-04-10 19:51:26 -05:00

12 lines
251 B
Bash
Executable File

#!/bin/bash
# Wait to see if bitcoin 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