summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-29 22:34:33 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-18 21:45:23 +0200
commit538333e24e65583df8c76d9f211ef58edb6176a1 (patch)
tree999c3289e5a2c54c60c918f96338ac8ff975e64b /interface-definitions
parent4384a2973993b8b0f572912026f45e9ee910e3ec (diff)
downloadvyos-1x-538333e24e65583df8c76d9f211ef58edb6176a1.tar.gz
vyos-1x-538333e24e65583df8c76d9f211ef58edb6176a1.zip
console-server: T2490: use "ls" for completion helper
Using "ls" is much faster compared to "find ... -exec basename"
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/ser2net.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/ser2net.xml.in b/interface-definitions/ser2net.xml.in
index 84bb82a20..b9520d20b 100644
--- a/interface-definitions/ser2net.xml.in
+++ b/interface-definitions/ser2net.xml.in
@@ -11,8 +11,8 @@
<properties>
<help>System serial interface name (ttyS or ttyUSB)</help>
<completionHelp>
- <script>find /dev -name ttyS* -exec basename {} \; | sort</script>
- <script>find /dev -name ttyUSB* -exec basename {} \; | sort</script>
+ <script>ls -1 /dev | grep ttyS</script>
+ <script>ls -1 /dev/serial/by-bus</script>
</completionHelp>
<valueHelp>
<format>ttySxxx</format>