aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-10-01 09:00:36 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-10-01 09:00:36 +0200
commitf780b205a9b1dfc7b3229916309661c7c115d965 (patch)
tree1da9eb2ffb79348babadf8b804b25640472e3ed4 /global-functions
parent4ebe2628b0819000fe359afbb7d17a883148eabd (diff)
global-functions: $DeviceInfo: do not fail on non-RouterBoard with ROS 7.x
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 4443431..22af3e2 100644
--- a/global-functions
+++ b/global-functions
@@ -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 ( \