mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-01 16:55:03 +02:00
check-routeros-update: drop check for package...
... as wireless package is bundled with the system with RouterOS 7.x.
This commit is contained in:
parent
61598c81e9
commit
0ed68824fd
1 changed files with 4 additions and 6 deletions
|
@ -39,12 +39,10 @@ $ScriptLock $0;
|
||||||
|
|
||||||
$WaitFullyConnected;
|
$WaitFullyConnected;
|
||||||
|
|
||||||
:if ([ :len [ /system/package/find where name="wireless" disabled=no ] ] > 0) do={
|
:if ([ /interface/wireless/cap/get enabled ] = true && \
|
||||||
:if ([ /interface/wireless/cap/get enabled ] = true && \
|
[ /caps-man/manager/get enabled ] = false && \
|
||||||
[ /caps-man/manager/get enabled ] = false && \
|
$SafeUpdateOnCap != true) do={
|
||||||
$SafeUpdateOnCap != true) do={
|
$LogPrintExit2 error $0 ("System is managed by CAPsMAN, not checking for RouterOS version.") true;
|
||||||
$LogPrintExit2 error $0 ("System is managed by CAPsMAN, not checking for RouterOS version.") true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /system/scheduler/find where name="reboot-for-update" ] ] > 0) do={
|
:if ([ :len [ /system/scheduler/find where name="reboot-for-update" ] ] > 0) do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue