3 # only for use as a "zcip" callback script
4 if [ "x$interface" = x ]
9 # zcip should start on boot/resume and various media changes
12 # for now, zcip requires the link to be already up,
13 # and it drops links when they go down. that isn't
14 # the most robust model...
22 # remember $ip for $interface, to use on restart
23 if [ "x$IP" != x -a -w "$IP.$interface" ]
25 echo $ip > "$IP.$interface"
27 exec ip address add dev $interface \
28 scope link local "$ip/16" broadcast +
35 exec ip address del dev $interface local $ip