summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/install.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-07-18 09:14:06 +0000
committerobrien <obrien@FreeBSD.org>2000-07-18 09:14:06 +0000
commit1edbe25abe98370f9a5ed50bc0727205228878bf (patch)
treebe84b7c280952ca644ac2b3fc65f818bbcf754cf /usr.sbin/sade/install.c
parent5aef58d7b9d8523da7d5c51472067b91b09bd239 (diff)
downloadFreeBSD-src-1edbe25abe98370f9a5ed50bc0727205228878bf.zip
FreeBSD-src-1edbe25abe98370f9a5ed50bc0727205228878bf.tar.gz
Allow the Fix-it functionality to detect that we are on a serial console,
and DTRT rather than start the fixit shell on a non-existant vty. PR: 19837 Submitted by: Doug Ambrisko <ambrisko@whistle.com> Approved by: JKH
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r--usr.sbin/sade/install.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index ac3b013..209c210 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -56,6 +56,7 @@
* Used by package.c
*/
int _interactiveHack;
+int FixItMode = 0;
static void create_termcap(void);
static void fixit_common(void);
@@ -248,8 +249,10 @@ installInitial(void)
int
installFixitHoloShell(dialogMenuItem *self)
{
+ FixItMode = 1;
systemCreateHoloshell();
return DITEM_SUCCESS;
+ FixItMode = 0;
}
int
@@ -397,6 +400,8 @@ fixit_common(void)
msgConfirm("Couldn't symlink the /etc/ files! I'm not sure I like this..");
if (!file_readable(TERMCAP_FILE))
create_termcap();
+ if (!OnVTY)
+ systemSuspendDialog(); /* must be before the fork() */
if (!(child = fork())) {
int i, fd, fdstop;
struct termios foo;
OpenPOWER on IntegriCloud