diff --git a/net/iproute2.sh b/net/iproute2.sh
index b1fe861..d983c9b 100644
a
|
b
|
_iproute2_ipv6_tentative() |
225 | 225 | |
226 | 226 | iproute2_post_start() |
227 | 227 | { |
| 228 | local n=5 |
| 229 | |
228 | 230 | # Kernel may not have IP built in |
229 | 231 | if [ -e /proc/net/route ]; then |
230 | 232 | ip route flush table cache dev "${IFACE}" |
… |
… |
iproute2_post_start() |
232 | 234 | |
233 | 235 | if _iproute2_ipv6_tentative; then |
234 | 236 | ebegin "Waiting for IPv6 addresses" |
235 | | while true; do |
| 237 | while [ $n -ge 0 ]; do |
236 | 238 | _iproute2_ipv6_tentative || break |
| 239 | sleep 1 |
| 240 | n=$(($n - 1)) |
237 | 241 | done |
238 | | eend 0 |
| 242 | [ $n -ge 0 ] |
| 243 | eend $? |
239 | 244 | fi |
| 245 | |
| 246 | return 0 |
240 | 247 | } |
241 | 248 | |
242 | 249 | iproute2_post_stop() |