aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/doc.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-11-04 08:47:33 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-11-04 08:47:33 +0000
commit79a8460110ea38eb718588a1788c7e134e4fbce7 (patch)
tree5003fe82791b5f78864dec4bdd12493a7450b4f5 /release/sysinstall/doc.c
parente9500cdb8a527985dbd5312cc05823091590e061 (diff)
downloadsrc-79a8460110ea38eb718588a1788c7e134e4fbce7.tar.gz
src-79a8460110ea38eb718588a1788c7e134e4fbce7.zip
Various tweaks to adjust things more to my liking. Also bring in Rich's
changes to update XFree86 to 3.1.2-S.
Notes
Notes: svn path=/head/; revision=12055
Diffstat (limited to 'release/sysinstall/doc.c')
-rw-r--r--release/sysinstall/doc.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/release/sysinstall/doc.c b/release/sysinstall/doc.c
index ef5be2f2683d..a52c659ed910 100644
--- a/release/sysinstall/doc.c
+++ b/release/sysinstall/doc.c
@@ -4,16 +4,12 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: doc.c,v 1.7 1995/10/27 01:22:53 jkh Exp $
+ * $Id: doc.c,v 1.8 1995/10/27 03:59:31 jkh Exp $
*
* Jordan Hubbard
*
* My contributions are in the public domain.
*
- * Parts of this file are also blatently stolen from Poul-Henning Kamp's
- * previous version of sysinstall, and as such fall under his "BEERWARE license"
- * so buy him a beer if you like it! Buy him a beer for me, too!
- * Heck, get him completely drunk and send me pictures! :-)
*/
#include "sysinstall.h"
@@ -26,7 +22,13 @@ int
docBrowser(char *junk)
{
char *browser = variable_get(VAR_BROWSER_PACKAGE);
-
+
+ if (!strstr(variable_get(SYSTEM_STATE), "install")) {
+ msgConfirm("This option may only be used after the system is installed, sorry!");
+ return RET_FAIL;
+ }
+
+ /* Make sure we have media available */
if (!mediaVerify())
return RET_FAIL;