diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-18 19:18:26 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-18 19:18:26 +0000 |
commit | 37838c93f6be5a90dc35b8fa3449218806fc0c1f (patch) | |
tree | 3f735b8eee63e6fa439e011bca14e2293b5de0cd /usr.sbin/sysinstall/options.c | |
parent | ee10277a8bc9d2921407623da8597b7eafec720b (diff) | |
download | FreeBSD-src-37838c93f6be5a90dc35b8fa3449218806fc0c1f.zip FreeBSD-src-37838c93f6be5a90dc35b8fa3449218806fc0c1f.tar.gz |
Fix a variety of problems with my timeout handling, make it more
configurable (you can now set the timeout interval), fix a crash-bug
when no network device was attached.
Diffstat (limited to 'usr.sbin/sysinstall/options.c')
-rw-r--r-- | usr.sbin/sysinstall/options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/options.c b/usr.sbin/sysinstall/options.c index a70799e..b421f0a 100644 --- a/usr.sbin/sysinstall/options.c +++ b/usr.sbin/sysinstall/options.c @@ -100,6 +100,7 @@ mediaCheck(Option opt) #define EDITOR_PROMPT "Please specify the name of the text editor you wish to use:" #define PKG_PROMPT "Please specify a temporary directory with lots of free space:" #define INSTROOT_PROMPT "Please specify a root directory if installing somewhere other than /" +#define TIMEOUT_PROMPT "Please specify the number of seconds to wait for slow media:" static Option Options[] = { { "NFS Secure", "NFS server talks only on a secure port", @@ -128,6 +129,8 @@ static Option Options[] = { OPT_IS_VAR, BBIN_PROMPT, VAR_BROWSER_BINARY, varCheck }, { "Media Type", "The current installation media type.", OPT_IS_FUNC, mediaGetType, VAR_MEDIA_TYPE, mediaCheck }, +{ "Media Timeout", "Timeout value in seconds for slow media.", + OPT_IS_VAR, TIMEOUT_PROMPT, VAR_MEDIA_TIMEOUT, varCheck }, { "Package Temp", "The directory where package temporary files should go", OPT_IS_VAR, PKG_PROMPT, VAR_PKG_TMPDIR, varCheck }, { "Use Defaults", "Reset all values to startup defaults", |