summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-04 20:26:32 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-04 20:29:39 +0200
commitce4a1eb35a91c9ac1a95e2418c1300004272e1a7 (patch)
tree5bb2c7c3697017e5023f8736ca094fb654964f0c
parentf728e321d1fb781e26bbc103ac9923064ec86086 (diff)
downloadvyos-1x-ce4a1eb35a91c9ac1a95e2418c1300004272e1a7.tar.gz
vyos-1x-ce4a1eb35a91c9ac1a95e2418c1300004272e1a7.zip
wwan: T4339: tab-completion results in "No such file or directory"
(cherry picked from commit 671abc96ac607226e208ac94b87a33851c144945)
-rw-r--r--interface-definitions/interfaces-wwan.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/interfaces-wwan.xml.in b/interface-definitions/interfaces-wwan.xml.in
index 19f152a06..e3feb7a8b 100644
--- a/interface-definitions/interfaces-wwan.xml.in
+++ b/interface-definitions/interfaces-wwan.xml.in
@@ -7,7 +7,7 @@
<help>Wireless Modem (WWAN) Interface</help>
<priority>350</priority>
<completionHelp>
- <script>cd /sys/class/net; ls -d wwan*</script>
+ <script>cd /sys/class/net; if compgen -G "wwan*" > /dev/null; then ls -d wwan*; fi</script>
</completionHelp>
<constraint>
<regex>^wwan[0-9]+$</regex>