summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/duplex/node.def2
2 files changed, 5 insertions, 0 deletions
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[@]##*/}
diff --git a/templates/interfaces/ethernet/node.tag/duplex/node.def b/templates/interfaces/ethernet/node.tag/duplex/node.def
index 70df798..684d4ec 100644
--- a/templates/interfaces/ethernet/node.tag/duplex/node.def
+++ b/templates/interfaces/ethernet/node.tag/duplex/node.def
@@ -4,3 +4,5 @@ syntax: $(@) in "half", "full"; "duplex must be half or full"
commit: $(../speed) != ""; "if duplex is hardcoded, speed must also be hardcoded"
update: "sudo ethtool -s $(../@) speed $(../speed/@) duplex $(@) autoneg off"
delete: "sudo ethtool -s $(../@) autoneg on"
+#comp_help: half\t\tHalf duplex
+# full\t\tFull duplex