summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet/node.def
blob: 66a53449d880d9f4e7a544c029ea2aa584c9f1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
tag:
type: txt
help: "Ethernet interface name"
syntax: exec " \
        if [ -z \"`ip addr | grep $(@) `\" ]; then \
          echo ethernet interface $(@) doesn\\'t exist on this system ; \
          exit 1 ; \
        fi ; "
update: "sudo ip link set $(@) up" ; "Error enabling dev $(@)"
delete: "sudo ip link set $(@) down" ; "Error disabling dev $(@)"
#allowed: local -a array ;
# array=( /sys/class/net/{eth,vmnet}* ) ;
# echo -n ${array[@]##*/}