Revision: 2752
http://ipcop.svn.sourceforge.net/ipcop/?rev=2752&view=rev
Author: owes
Date: 2009-04-28 18:45:09 +0000 (Tue, 28 Apr 2009)
Log Message:
-----------
Add a small sleep to avoid crash when configuring onboard NIC on Netvista
Modified Paths:
--------------
ipcop/trunk/src/installer/networking.c
Modified: ipcop/trunk/src/installer/networking.c
===================================================================
--- ipcop/trunk/src/installer/networking.c 2009-04-28 13:16:21 UTC (rev
2751)
+++ ipcop/trunk/src/installer/networking.c 2009-04-28 18:45:09 UTC (rev
2752)
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "common.h"
@@ -449,6 +450,10 @@
/* make the card blink during selection if supported */
snprintf(command, STRING_SIZE, "/sbin/ifconfig %s up", networks[n].device);
mysystem(command);
+ /* On a Netvista with onboard NIC (8086:103b, e100 driver) network setup
crashes (as in stuck, nothing working)
+ if we do not give some time here. Do not know why, but I guess it does
not hurt to do a little sleep here.
+ With 1.4.20 we do not need this sleep, but things are different now. */
+ sleep(1);
snprintf(command, STRING_SIZE, "/usr/sbin/ethtool -p %s &",
networks[n].device);
mysystem(command);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn