Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst Fix PR kern/51531 by using ifconfig to wait...
details: https://anonhg.NetBSD.org/src/rev/fa9a52378e0f
branches: trunk
changeset: 349074:fa9a52378e0f
user: roy <roy%NetBSD.org@localhost>
date: Tue Nov 22 12:04:35 2016 +0000
description:
Fix PR kern/51531 by using ifconfig to wait for addresses to become
valid rather than sleeping a fixed ammount of time.
diffstat:
usr.sbin/sysinst/net.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 4e7ce8f3eeaa -r fa9a52378e0f usr.sbin/sysinst/net.c
--- a/usr.sbin/sysinst/net.c Tue Nov 22 11:01:50 2016 +0000
+++ b/usr.sbin/sysinst/net.c Tue Nov 22 12:04:35 2016 +0000
@@ -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 @@
}
/*
- * 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");
}
/*
Home |
Main Index |
Thread Index |
Old Index