mirror of
https://github.com/furaihan/simple-mikrotik-script.git
synced 2025-06-21 05:45:43 +02:00
added check connection function and update cpu-monitoring
This commit is contained in:
parent
f03e93151b
commit
840defec9b
2 changed files with 14 additions and 8 deletions
10
first-setup
10
first-setup
|
@ -38,3 +38,13 @@ global ConvertUpperCase do={
|
|||
}
|
||||
:return $result
|
||||
}
|
||||
global CheckConnection do={
|
||||
global ConnectionAvailable
|
||||
tool flood-ping 8.8.8.8 count=10 do={
|
||||
/if ($received > 8) do={
|
||||
set $ConnectionAvailable [tobool true]
|
||||
} else={
|
||||
set $ConnectionAvailable [tobool false]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue