Revision: 5587
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5587&view=rev
Author:   gespinasse
Date:     2011-04-03 15:43:05 +0000 (Sun, 03 Apr 2011)

Log Message:
-----------
At least on pxe boot, fix the can't stat '/etc/dhcp-*params': No such file or 
directory

A detail, interface is prefixed with eth, do the same here.

There is another issue seen with 'install codepath=1'
That will fail (at least on pxe booted machine) as the string with ifconfig 
look wrong, like
Running command: ifconfig eth0 
192.168.1.120192.168.1.120192.168.1.120192.168.1.120 netmask 
255.255.255.0255.255.255.0255.255.255.0255.255.255.0 up

Hunting that new bug next

Modified Paths:
--------------
    ipcop/trunk/src/installer/installer.c

Modified: ipcop/trunk/src/installer/installer.c
===================================================================
--- ipcop/trunk/src/installer/installer.c       2011-04-03 14:01:27 UTC (rev 
5586)
+++ ipcop/trunk/src/installer/installer.c       2011-04-03 15:43:05 UTC (rev 
5587)
@@ -1056,7 +1056,7 @@
 
     if ((medium_sources == network) && (restore_success == FAILURE)) {
         /* running udhcp may have given us some acceptable defaults */
-        mysystem("/bin/cp /etc/dhcp-*.params /harddisk/tmp/");
+        mysystem("[ -e /etc/dhcp-eth*.params ] && /bin/cp 
/etc/dhcp-eth*.params /harddisk/tmp/");
     }
     else if (medium_sources == cdrom) {
         mysystem("/bin/umount /cdrom");


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to