summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2001-03-12 21:26:06 +0000
committerjkh <jkh@FreeBSD.org>2001-03-12 21:26:06 +0000
commitbfe50892f16ba10eae7e56bc0e969046f2a3cf4b (patch)
tree90035c7c53d191ae0b50e09b5a1b47976b69c3bb /usr.sbin
parent3a2d85776616d31a44d30dad435c30a03e984374 (diff)
downloadFreeBSD-src-bfe50892f16ba10eae7e56bc0e969046f2a3cf4b.zip
FreeBSD-src-bfe50892f16ba10eae7e56bc0e969046f2a3cf4b.tar.gz
Allow a script-using to disable the emergency holographic shell as
a security measure. Requested by: "David E. Cross" <crossd@enterprise.cs.rpi.edu>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/install.c3
-rw-r--r--usr.sbin/sade/sade.85
-rw-r--r--usr.sbin/sade/sade.h1
-rw-r--r--usr.sbin/sysinstall/install.c3
-rw-r--r--usr.sbin/sysinstall/sysinstall.85
-rw-r--r--usr.sbin/sysinstall/sysinstall.h1
6 files changed, 14 insertions, 4 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 638530a..4c51dac 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -240,7 +240,8 @@ installInitial(void)
status = DITEM_FAILURE;
/* stick a helpful shell over on the 4th VTY */
- systemCreateHoloshell();
+ if (!variable_get(VAR_NO_HOLOSHELL))
+ systemCreateHoloshell();
alreadyDone = TRUE;
return status;
diff --git a/usr.sbin/sade/sade.8 b/usr.sbin/sade/sade.8
index 440a429..53d9cbd 100644
--- a/usr.sbin/sade/sade.8
+++ b/usr.sbin/sade/sade.8
@@ -652,7 +652,10 @@ Start an upgrade installation.
None
.It installFixitHoloShell
Start up the "emergency holographic shell" over on VTY4
-if running as init.
+if running as init. This will also happen automatically
+as part of the installation process unless
+.Ar noHoloShell
+is set.
.Pp
.Sy Variables :
None
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h
index 63f32b7..a1ea129 100644
--- a/usr.sbin/sade/sade.h
+++ b/usr.sbin/sade/sade.h
@@ -147,6 +147,7 @@
#define VAR_NFS_SERVER "nfs_server_enable"
#define VAR_NO_CONFIRM "noConfirm"
#define VAR_NO_ERROR "noError"
+#define VAR_NO_HOLOSHELL "noHoloShell"
#define VAR_NO_WARN "noWarn"
#define VAR_NO_USR "noUsr"
#define VAR_NONINTERACTIVE "nonInteractive"
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index 638530a..4c51dac 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -240,7 +240,8 @@ installInitial(void)
status = DITEM_FAILURE;
/* stick a helpful shell over on the 4th VTY */
- systemCreateHoloshell();
+ if (!variable_get(VAR_NO_HOLOSHELL))
+ systemCreateHoloshell();
alreadyDone = TRUE;
return status;
diff --git a/usr.sbin/sysinstall/sysinstall.8 b/usr.sbin/sysinstall/sysinstall.8
index 440a429..53d9cbd 100644
--- a/usr.sbin/sysinstall/sysinstall.8
+++ b/usr.sbin/sysinstall/sysinstall.8
@@ -652,7 +652,10 @@ Start an upgrade installation.
None
.It installFixitHoloShell
Start up the "emergency holographic shell" over on VTY4
-if running as init.
+if running as init. This will also happen automatically
+as part of the installation process unless
+.Ar noHoloShell
+is set.
.Pp
.Sy Variables :
None
diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h
index 63f32b7..a1ea129 100644
--- a/usr.sbin/sysinstall/sysinstall.h
+++ b/usr.sbin/sysinstall/sysinstall.h
@@ -147,6 +147,7 @@
#define VAR_NFS_SERVER "nfs_server_enable"
#define VAR_NO_CONFIRM "noConfirm"
#define VAR_NO_ERROR "noError"
+#define VAR_NO_HOLOSHELL "noHoloShell"
#define VAR_NO_WARN "noWarn"
#define VAR_NO_USR "noUsr"
#define VAR_NONINTERACTIVE "nonInteractive"
OpenPOWER on IntegriCloud