␉␉␉␉␉␉gVerboseMode = false;␊ |
␉␉␉␉␉␉gBootMode = kBootModeNormal;␊ |
␉␉␉␉␉␉*gBootArgsPtr++ = '-';␊ |
␉␉␉␉␉␉*gBootArgsPtr++ = 'f';␊ |
␉␉␉␉␉␉*gBootArgsPtr++ = 'x';␊ |
␉␉␉␉␉␉break;␊ |
␉␉␉␉␉␉␊ |
␉␉␉␉␉case BOOT_SINGLEUSER:␊ |
|
strncpy(&argP[cnt], cp, userCnt);␊ |
argP[cnt+userCnt] = '\0';␊ |
␊ |
if(!shouldboot)␊ |
{␊ |
␉gVerboseMode = getValueForKey( kVerboseModeFlag, &val, &cnt, &bootInfo->bootConfig ) ||␊ |
getValueForKey( kSingleUserModeFlag, &val, &cnt, &bootInfo->bootConfig );␊ |
␉if(!shouldboot)␊ |
␉{␊ |
␉␉gVerboseMode = getValueForKey( kVerboseModeFlag, &val, &cnt, &bootInfo->bootConfig ) ||␊ |
␉␉␉getValueForKey( kSingleUserModeFlag, &val, &cnt, &bootInfo->bootConfig );␊ |
␉␉␊ |
␉␉gBootMode = ( getValueForKey( kSafeModeFlag, &val, &cnt, &bootInfo->bootConfig ) ) ?␊ |
␉␉␉kBootModeSafe : kBootModeNormal;␊ |
␉}␊ |
␊ |
gBootMode = ( getValueForKey( kSafeModeFlag, &val, &cnt, &bootInfo->bootConfig ) ) ?␊ |
␉ kBootModeSafe : kBootModeNormal;␊ |
␉if ( getValueForKey( kMKextCacheKey, &val, &cnt, &bootInfo->bootConfig ) )␊ |
␉{␊ |
␉␉strlcpy(gMKextName, val, cnt + 1);␊ |
␉}␊ |
␊ |
␉if ( getValueForKey( kOldSafeModeFlag, &val, &cnt, &bootInfo->bootConfig ) ) {␊ |
␉gBootMode = kBootModeSafe;␊ |
␉}␊ |
␊ |
␉if ( getValueForKey( kMKextCacheKey, &val, &cnt, &bootInfo->bootConfig ) ) {␊ |
␉strlcpy(gMKextName, val, cnt + 1);␊ |
␉}␊ |
␊ |
}␊ |
␉ ␊ |
free(configKernelFlags);␊ |
free(valueBuffer);␊ |
␊ |