mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-27 04:09:31 +00:00
Compare commits
2 commits
d7f9f3eade
...
c5c9f869d2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5c9f869d2 | ||
|
|
76aa8e73b2 |
2 changed files with 13 additions and 17 deletions
|
|
@ -51,12 +51,10 @@ The functions `$SSHKeysImportFile` can read an `authorized_keys`-style file
|
|||
and import all the keys. The user given to the function can be overwritting
|
||||
from comments in the file. Create a file `keys.pub` with this content:
|
||||
|
||||
```
|
||||
ssh-ed25519 AAAAC3Nza...3OcN8A user@client
|
||||
ssh-rsa AAAAB3Nza...ozyts= worker@station
|
||||
# user=example
|
||||
ssh-rsa AAAAB3Nza...GXQVk= person@host
|
||||
```
|
||||
ssh-ed25519 AAAAC3Nza...3OcN8A user@client
|
||||
ssh-rsa AAAAB3Nza...ozyts= worker@station
|
||||
# user=example
|
||||
ssh-rsa AAAAB3Nza...GXQVk= person@host
|
||||
|
||||
Then import it with:
|
||||
|
||||
|
|
|
|||
|
|
@ -26,17 +26,15 @@ can configure the reset button to act the same, see
|
|||
|
||||
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.";
|
||||
}
|
||||
}
|
||||
```
|
||||
: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