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