mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix sysinstall videomode creation.
This commit is contained in:
parent
9ec09476ba
commit
1083e67d45
1 changed files with 13 additions and 12 deletions
|
@ -421,7 +421,7 @@ int main(void)
|
|||
while ( true )
|
||||
{
|
||||
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") )
|
||||
continue;
|
||||
bool was_no = strcasecmp(input, "no") == 0;
|
||||
|
@ -446,18 +446,19 @@ int main(void)
|
|||
get_mode.mode.fb_format);
|
||||
break;
|
||||
}
|
||||
|
||||
if ( !input[0] )
|
||||
text("/etc/videomode will not be created.\n");
|
||||
else
|
||||
{
|
||||
textf("/etc/videomode will be set to \"%s\".\n", input);
|
||||
mode_t old_umask = getumask();
|
||||
umask(022);
|
||||
install_configurationf("videomode", "w", "%s\n", input);
|
||||
umask(old_umask);
|
||||
}
|
||||
text("\n");
|
||||
}
|
||||
if ( !input[0] )
|
||||
text("/etc/videomode will not be created.\n");
|
||||
else
|
||||
{
|
||||
textf("/etc/videomode will be set to \"%s\".\n", input);
|
||||
mode_t old_umask = getumask();
|
||||
umask(022);
|
||||
install_configurationf("videomode", "w", "%s\n", input);
|
||||
umask(old_umask);
|
||||
}
|
||||
text("\n");
|
||||
|
||||
scan_devices();
|
||||
|
||||
|
|
Loading…
Reference in a new issue