blob: e57f4b19620c3910bfe27b376d38af80b01b7082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
tag:
type: txt
help: Set loopback interface
allowed: echo "lo"
syntax:expression: exec "\
if [ ! -d /sys/class/net/$VAR(@) ]; then \
echo \"loopback interface $VAR(@) does not exist\"; \
exit 1; \
elif [ $(cat /sys/class/net/$VAR(@)/type) -ne 772 ]; then \
echo \"interface $VAR(@) is not a loopback interface\"; \
exit 1; \
fi"
update: sudo ip link set $VAR(@) up
|