From: <ow...@us...> - 2009-12-28 13:34:58
|
Revision: 4049 http://ipcop.svn.sourceforge.net/ipcop/?rev=4049&view=rev Author: owes Date: 2009-12-28 13:34:49 +0000 (Mon, 28 Dec 2009) Log Message: ----------- Stop installation with error if the sed on extlinux.conf fail. Also use sync instead of sleep, might help to get the modifications flushed out to disk. Modified Paths: -------------- ipcop/trunk/src/installer/partition.c Modified: ipcop/trunk/src/installer/partition.c =================================================================== --- ipcop/trunk/src/installer/partition.c 2009-12-27 16:27:25 UTC (rev 4048) +++ ipcop/trunk/src/installer/partition.c 2009-12-28 13:34:49 UTC (rev 4049) @@ -695,8 +695,10 @@ } strcat(bigstring, "/harddisk/boot/extlinux.conf"); - mysystem(bigstring); - sleep(1); + if (mysystem(bigstring)) { + return(FAILURE); + } + mysystem("/bin/sync"); /* Install extlinux and MBR */ if (mysystem("chroot /harddisk /sbin/extlinux --install /boot")) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |