diff options
Diffstat (limited to 'loader/pcmcia.c')
-rw-r--r-- | loader/pcmcia.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/loader/pcmcia.c b/loader/pcmcia.c index 0baa3c9b5..f26caac33 100644 --- a/loader/pcmcia.c +++ b/loader/pcmcia.c @@ -162,14 +162,20 @@ int startPcmcia(char * floppyDevice, moduleList modLoaded, moduleDeps modDeps, logMessage("cardmgr running as pid %d", child); waitpid(child, &status, 0); - logMessage("cardmgr returned 0x%x", status); busProbe(modInfo, modLoaded, modDeps, 0, kd, flags); - newtPopWindow(); - umount("/modules"); + while(1) { + sleep(2); + rc = umount("/modules"); + if (rc != -1) { + break; + } + logMessage("return code of /modules unmount is %d", rc); + } + newtPopWindow(); strcpy(pcicPtr, pcic); return 0; |