mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Apply pending /etc/ttys changes before calling editor on it
Approved by: rwatson
This commit is contained in:
parent
b10fee5d7b
commit
cf9da17cbb
2 changed files with 2 additions and 0 deletions
|
|
@ -1046,6 +1046,7 @@ configEtcTtys(dialogMenuItem *self)
|
|||
"configuration.\n\n"
|
||||
"To load /etc/ttys in the editor, select [Yes], otherwise, [No].")) {
|
||||
} else {
|
||||
configTtys();
|
||||
sprintf(cmd, "%s /etc/ttys", variable_get(VAR_EDITOR));
|
||||
dialog_clear();
|
||||
systemExecute(cmd);
|
||||
|
|
|
|||
|
|
@ -1046,6 +1046,7 @@ configEtcTtys(dialogMenuItem *self)
|
|||
"configuration.\n\n"
|
||||
"To load /etc/ttys in the editor, select [Yes], otherwise, [No].")) {
|
||||
} else {
|
||||
configTtys();
|
||||
sprintf(cmd, "%s /etc/ttys", variable_get(VAR_EDITOR));
|
||||
dialog_clear();
|
||||
systemExecute(cmd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue