Add test scripts and backup-buttons script

This commit is contained in:
Pothi Kalimuthu 2022-11-10 12:35:50 +05:30
parent bf07a55ca5
commit a1a0489377
No known key found for this signature in database
GPG key ID: 08202A469C2D0E06
6 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,13 @@
# requirement: /interface detect-internet set detect-interface-list=WAN
/interface detect-internet
# set detect-interface-list=WAN
state
:do {
:log info "Waiting for internet..."
:set $internetStatus ([:pick [print as-value] 0]->"state")
:delay 3s
} while ($internetStatus != "internet")
:log info "Connected to internet."