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