summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces-wwan.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-04 22:51:36 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-04 22:51:36 +0200
commit2589efdda542c0dea963a12516e25df449e4662e (patch)
tree781925e025a07fbc764c30de4475ac86b6c6f908 /op-mode-definitions/show-interfaces-wwan.xml.in
parentf2ecc9710d49d320409700bc72f42632f72b369d (diff)
downloadvyos-1x-2589efdda542c0dea963a12516e25df449e4662e.tar.gz
vyos-1x-2589efdda542c0dea963a12516e25df449e4662e.zip
wwan: op-mode: T5196: inform user about unconfigured interface
Diffstat (limited to 'op-mode-definitions/show-interfaces-wwan.xml.in')
-rw-r--r--op-mode-definitions/show-interfaces-wwan.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/show-interfaces-wwan.xml.in b/op-mode-definitions/show-interfaces-wwan.xml.in
index 2707c0d8e..45558115b 100644
--- a/op-mode-definitions/show-interfaces-wwan.xml.in
+++ b/op-mode-definitions/show-interfaces-wwan.xml.in
@@ -72,7 +72,7 @@
<properties>
<help>Show WWAN module detailed information summary</help>
</properties>
- <command>mmcli --modem ${4#wwan}</command>
+ <command>if cli-shell-api existsActive interfaces wwan $4; then mmcli --modem ${4#wwan}; else echo "Interface \"$4\" unconfigured!"; fi</command>
</leafNode>
<leafNode name="log">
<properties>