mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-23 06:54:16 +02:00
wait 5min for autounlock
This commit is contained in:
parent
57b8daf8cf
commit
801c3120a9
@ -238,8 +238,8 @@ To run a BACKUP of funds & channels first is recommended.
|
||||
locked=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
|
||||
if [ ${locked} -gt 0 ]; then
|
||||
uptime=$(awk '{printf("%d\n",$1 + 0.5)}' /proc/uptime)
|
||||
if [ "${autoUnlock}" == "on" ] && [ ${uptime} -lt 240 ]; then
|
||||
# give autounlock 4 min after startup to react
|
||||
if [ "${autoUnlock}" == "on" ] && [ ${uptime} -lt 300 ]; then
|
||||
# give autounlock 5 min after startup to react
|
||||
sleep 1
|
||||
else
|
||||
/home/admin/AAunlockLND.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user