From b7750af0fa67e28cf6eb607408485dbda194837b Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 24 Oct 2007 18:43:13 -0700 Subject: * add dynamic "allowed" support for config-mode completion. * add support for completion help text. * add an example for each of the above ("ethernet" and "ethernet/duplex"). --- templates/interfaces/ethernet/node.def | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/interfaces/ethernet/node.def') diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index b5a320e..8806643 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -6,3 +6,6 @@ syntax: exec " \ echo ethernet interface $(@) doesn\\'t exist on this system ; \ exit 1 ; \ fi ; " +#allowed: local -a array ; +# array=( /sys/class/net/{eth,vmnet}* ) ; +# echo -n ${array[@]##*/} -- cgit v1.2.3