# HG changeset patch # User Pascal Bellard # Date 1506174807 -7200 # Node ID 78a25960b7ef27ecceefca899ace6d2fd2f9a8b2 # Parent 22fbe02a8c960959462464fd908e8afd9d8872f7 busybox/udhcpc6: update script (again) diff -r 22fbe02a8c96 -r 78a25960b7ef busybox/stuff/udhcp.script --- a/busybox/stuff/udhcp.script Sat Sep 23 14:24:16 2017 +0200 +++ b/busybox/stuff/udhcp.script Sat Sep 23 15:53:27 2017 +0200 @@ -31,11 +31,13 @@ ;; renew|bound) - if [ ${ip/:/} == $ip ]; then + ipv6prefix=${ipv6prefix:-/64} + [ -n "$ip" ] && if [ ${ip/:/} == $ip ]; then ifconfig $interface $ip $BROADCAST $NETMASK else ip -6 addr add ${ip}/${ipv6prefix#*/} dev $interface fi + [ -n "$ipv6" ] && ip -6 addr add ${ipv6}/${ipv6prefix#*/} dev $interface if [ -n "$router" ] ; then echo "deleting routers"