blob: 55d0a85accdbf9288eb900eb26dc6b79c716f281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
tag:
type: txt
help: Set ethernet interface
syntax:expression: pattern $VAR(@) "^eth[0-9]+$" \
; "interface must be (eth0 - eth999)"
syntax:expression: exec " \
if [ -f /sys/class/net/$VAR(@) ]; then \
echo \"Ethernet interface does not exist: $VAR(@)\"; \
exit 1; \
fi"
allowed: /opt/vyatt/sbin/vyatta-interfaces.pl --show=ethernet
update: sudo ip link set "$VAR(@)" up
/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
delete: sudo ip link set "$VAR(@)" down
|