From f780b205a9b1dfc7b3229916309661c7c115d965 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 1 Oct 2021 09:00:36 +0200 Subject: global-functions: $DeviceInfo: do not fail on non-RouterBoard with ROS 7.x --- global-functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ( \ -- cgit v1.2.3-54-g00ecf