summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-05-14 17:14:13 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-05-14 17:14:13 -0700
commit38ae54675fa5ea5a9bab5870b0a966e5f3da66ca (patch)
tree228274acf52cc4262d2b7274f470a4c9bcb29df7 /scripts
parentd36d0a6ea76d443c5e4072401eaa9dbf563c74bd (diff)
downloadvyatta-cfg-38ae54675fa5ea5a9bab5870b0a966e5f3da66ca.tar.gz
vyatta-cfg-38ae54675fa5ea5a9bab5870b0a966e5f3da66ca.zip
POC implementation of unified enumeration mechanism
* use "enumeration" template field for both CLI completion and GUI2 enumeration support. * CLI completion now uses enumeration if it exists. * add "existing-interfaces" script as an example.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/enumeration/existing-interfaces4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/enumeration/existing-interfaces b/scripts/enumeration/existing-interfaces
new file mode 100755
index 0000000..1defc22
--- /dev/null
+++ b/scripts/enumeration/existing-interfaces
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+ls /sys/class/net 2>/dev/null
+