wok-current rev 20067
busybox/udhcpc6: update script (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 23 15:53:27 2017 +0200 (2017-09-23) |
parents | 22fbe02a8c96 |
children | 3437359e0ac3 |
files | busybox/stuff/udhcp.script |
line diff
1.1 --- a/busybox/stuff/udhcp.script Sat Sep 23 14:24:16 2017 +0200 1.2 +++ b/busybox/stuff/udhcp.script Sat Sep 23 15:53:27 2017 +0200 1.3 @@ -31,11 +31,13 @@ 1.4 ;; 1.5 1.6 renew|bound) 1.7 - if [ ${ip/:/} == $ip ]; then 1.8 + ipv6prefix=${ipv6prefix:-/64} 1.9 + [ -n "$ip" ] && if [ ${ip/:/} == $ip ]; then 1.10 ifconfig $interface $ip $BROADCAST $NETMASK 1.11 else 1.12 ip -6 addr add ${ip}/${ipv6prefix#*/} dev $interface 1.13 fi 1.14 + [ -n "$ipv6" ] && ip -6 addr add ${ipv6}/${ipv6prefix#*/} dev $interface 1.15 1.16 if [ -n "$router" ] ; then 1.17 echo "deleting routers"