aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 7c34a5c..ba83bcb 100644
--- a/global-functions
+++ b/global-functions
@@ -201,6 +201,7 @@
:do {
:set RouterBoard [ / system routerboard get ];
} on-error={ }
+ :local License [ / system license get ];
:local Update [ / system package update get ];
:return ( \
@@ -212,6 +213,8 @@
[ $IfThenElse ([ :len ($RouterBoard->"revision") ] > 0) \
(" " . $RouterBoard->"revision") ] . \
"\nSerial number: " . $RouterBoard->"serial-number") ] . \
+ [ $IfThenElse ([ :len ($License->"level") ] > 0) \
+ ("\nLicense: " . $License->"level") ] . \
"\nRouterOS:" . \
"\n Channel: " . $Update->"channel" . \
"\n Installed: " . $Update->"installed-version" . \