mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +02:00
doc/mode-button: add code to check for support
This commit is contained in:
parent
d434a2f2d7
commit
0c111a2ebe
1 changed files with 14 additions and 0 deletions
|
@ -14,6 +14,20 @@ The hardware needs to have a mode button, see
|
|||
can configure the reset button to act the same, see
|
||||
`/ system routerboard reset-button`.
|
||||
|
||||
Copy this code to terminal to check:
|
||||
|
||||
```
|
||||
:if ([ :len [ /system routerboard mode-button print as-value ] ] > 0) do={
|
||||
:put "Mode button is supported.";
|
||||
} else={
|
||||
:if ([ :len [ /system routerboard reset-button print as-value ] ] > 0) do={
|
||||
:put "Mode button is not supported, but reset button is.";
|
||||
} else={
|
||||
:put "Neither mode button nor reset button is supported.";
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Requirements and installation
|
||||
-----------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue