Module Name: src Committed By: roy Date: Tue Nov 22 12:04:35 UTC 2016
Modified Files: src/usr.sbin/sysinst: net.c Log Message: Fix PR kern/51531 by using ifconfig to wait for addresses to become valid rather than sleeping a fixed ammount of time. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/sysinst/net.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/net.c diff -u src/usr.sbin/sysinst/net.c:1.21 src/usr.sbin/sysinst/net.c:1.22 --- src/usr.sbin/sysinst/net.c:1.21 Thu May 21 01:09:00 2015 +++ src/usr.sbin/sysinst/net.c Tue Nov 22 12:04:35 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: net.c,v 1.21 2015/05/21 01:09:00 ozaki-r Exp $ */ +/* $NetBSD: net.c,v 1.22 2016/11/22 12:04:35 roy Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -833,11 +833,12 @@ done: } /* - * wait a couple of seconds for the interface to go live. + * wait for addresses to become valid */ if (!nfs_root) { msg_display_add(MSG_wait_network); - sleep(5); + run_program(RUN_DISPLAY | RUN_PROGRESS, + "/sbin/ifconfig -w 15 -W 5"); } /*