diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-04 20:26:32 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-04 20:26:32 +0200 |
commit | 671abc96ac607226e208ac94b87a33851c144945 (patch) | |
tree | cc53fa1159a2946ec2227ffd22a6846b7ad94a88 | |
parent | 76a049c7d30f3e64989b9697d65d15bfd3005316 (diff) | |
download | vyos-1x-671abc96ac607226e208ac94b87a33851c144945.tar.gz vyos-1x-671abc96ac607226e208ac94b87a33851c144945.zip |
wwan: T4339: tab-completion results in "No such file or directory"
-rw-r--r-- | interface-definitions/interfaces-wwan.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/interfaces-wwan.xml.in b/interface-definitions/interfaces-wwan.xml.in index 7007a67ae..c46bc58a7 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> |