From: <ow...@us...> - 2008-11-28 18:28:20
|
Revision: 2126 http://ipcop.svn.sourceforge.net/ipcop/?rev=2126&view=rev Author: owes Date: 2008-11-28 18:28:09 +0000 (Fri, 28 Nov 2008) Log Message: ----------- Make setup more robust against removing network cards. Modified Paths: -------------- ipcop/trunk/src/installer/networking.c Modified: ipcop/trunk/src/installer/networking.c =================================================================== --- ipcop/trunk/src/installer/networking.c 2008-11-28 18:27:06 UTC (rev 2125) +++ ipcop/trunk/src/installer/networking.c 2008-11-28 18:28:09 UTC (rev 2126) @@ -333,6 +333,12 @@ c = atoi(find_kv(eth_kv, key)); for (j = 1; j <= c; j++) { + /* Test if the configured device is still present */ + snprintf(key, STRING_SIZE, "%s_%d_DEV", ipcop_colours_text[i], j); + if (exist_ethernet_device(find_kv(eth_kv, key)) == FAILURE) { + continue; + } + snprintf(key, STRING_SIZE, "%s_%d_DRIVER", ipcop_colours_text[i], j); for (n = 0; n < numnetwork; n++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |