8 test -f /etc/networks/$net || (echo "unknown network configuration '$net'" >&2 && exit 1)
20 if [ "$enable" = 'no' ]; then exit 0; fi
24 #ip link set dev $dev up
32 if [ "$addr" = 'dhcp' ]; then
33 /sbin/dhcpcd -q -k $dev
35 for address in $addr; do
37 ip addr del $address dev $dev
42 # how do we determine if we should bring the link down?
43 # there could be other configurations that also set up IP
44 # addresses. Also, what happens exactly if the primary
45 # ip address is removed, but not the secondary ones also?
47 # for now, just leave the link up, I don't think it hurts