+
+ /* Make sure /sbin/getty exists before trying to run it */
+ if (stat(GETTY, &statbuf)==0) {
+ char* where;
+ wait_for_enter_tty2 = FALSE;
+ where = strrchr( console, '/');
+ if ( where != NULL) {
+ strcpy( (char*)getty2_command[2], where);
+ }
+ tty2_command = getty2_command;
+ /* Check on hooking a getty onto tty1 */
+ if (run_rc == FALSE && single==FALSE) {
+ wait_for_enter_tty1 = FALSE;
+ where = strrchr( second_console, '/');
+ if ( where != NULL) {
+ strcpy( (char*)getty1_command[2], where);
+ }
+ tty1_command = getty1_command;
+ }
+ }
+