summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-04-08 17:50:58 +0300
committerGitHub <noreply@github.com>2022-04-08 17:50:58 +0300
commitbd50d51f1e49724c9a01e9ce5c0aefa04ec3e913 (patch)
tree14ac39549f039921ad67dd02448be2dbeb805a97 /interface-definitions
parent298ce87e8fc444cd42ec10a43a2eb446b71febd6 (diff)
parente5f1df1988a16d683b72a99bbf9c37305131c49e (diff)
downloadvyos-1x-bd50d51f1e49724c9a01e9ce5c0aefa04ec3e913.tar.gz
vyos-1x-bd50d51f1e49724c9a01e9ce5c0aefa04ec3e913.zip
Merge pull request #1263 from c-po/wwan-t4324-equuleus
T4324, T4338, T4339 WWAN interface bugfixes
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-wireless.xml.in3
-rw-r--r--interface-definitions/interfaces-wwan.xml.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/interface-definitions/interfaces-wireless.xml.in b/interface-definitions/interfaces-wireless.xml.in
index cc3fe2a6a..77afa3b15 100644
--- a/interface-definitions/interfaces-wireless.xml.in
+++ b/interface-definitions/interfaces-wireless.xml.in
@@ -6,6 +6,9 @@
<properties>
<help>Wireless (WiFi/WLAN) Network Interface</help>
<priority>318</priority>
+ <completionHelp>
+ <script>cd /sys/class/net; if compgen -G "wlan*" > /dev/null; then ls -d wlan*; fi</script>
+ </completionHelp>
<constraint>
<regex>^wlan[0-9]+$</regex>
</constraint>
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>