Fix sysinstall videomode creation.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-03-24 23:58:14 +01:00
parent 9ec09476ba
commit 1083e67d45
1 changed files with 13 additions and 12 deletions

View File

@ -421,7 +421,7 @@ int main(void)
while ( true ) while ( true )
{ {
prompt(input, sizeof(input), prompt(input, sizeof(input),
"Select default display resolution? (yes/no)", "yes"); "Select a default display resolution? (yes/no)", "yes");
if ( strcasecmp(input, "no") && strcasecmp(input, "yes") ) if ( strcasecmp(input, "no") && strcasecmp(input, "yes") )
continue; continue;
bool was_no = strcasecmp(input, "no") == 0; bool was_no = strcasecmp(input, "no") == 0;
@ -446,7 +446,7 @@ int main(void)
get_mode.mode.fb_format); get_mode.mode.fb_format);
break; break;
} }
}
if ( !input[0] ) if ( !input[0] )
text("/etc/videomode will not be created.\n"); text("/etc/videomode will not be created.\n");
else else
@ -458,6 +458,7 @@ int main(void)
umask(old_umask); umask(old_umask);
} }
text("\n"); text("\n");
}
scan_devices(); scan_devices();