mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $DeviceInfo: do not fail on non-RouterBoard with ROS 7.x
This commit is contained in:
parent
4ebe2628b0
commit
f780b205a9
1 changed files with 4 additions and 1 deletions
|
@ -198,7 +198,10 @@
|
|||
:global IfThenElse;
|
||||
|
||||
:local Resource [ / system resource get ];
|
||||
:local RouterBoard [ / system routerboard get ];
|
||||
:local RouterBoard;
|
||||
:do {
|
||||
:set RouterBoard [ / system routerboard get ];
|
||||
} on-error={ }
|
||||
:local Update [ / system package update get ];
|
||||
|
||||
:return ( \
|
||||
|
|
Loading…
Reference in a new issue