summaryrefslogtreecommitdiffstats
path: root/sbin/vinum/v.c
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-04-10 04:00:49 +0000
committergrog <grog@FreeBSD.org>1999-04-10 04:00:49 +0000
commitb3fa99a769d8cd82db2d5e4257f0deeefff7c716 (patch)
tree709eceb15ec9ec1659138ce488209cdc0182e4a6 /sbin/vinum/v.c
parentfbe37a582cd33417816435728df3c51ab660ad8b (diff)
downloadFreeBSD-src-b3fa99a769d8cd82db2d5e4257f0deeefff7c716.zip
FreeBSD-src-b3fa99a769d8cd82db2d5e4257f0deeefff7c716.tar.gz
Add -w option to init command: wait for init to complete before
returning.
Diffstat (limited to 'sbin/vinum/v.c')
-rw-r--r--sbin/vinum/v.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c
index 7dfd8dd..ff2acd3 100644
--- a/sbin/vinum/v.c
+++ b/sbin/vinum/v.c
@@ -80,6 +80,7 @@ int verbose = 0; /* set verbose operation */
int Verbose = 0; /* set very verbose operation */
int recurse = 0; /* set recursion */
int stats = 0; /* show statistics */
+int dowait = 0; /* wait for completion */
/* Structures to read kernel data into */
struct _vinum_conf vinum_conf; /* configuration information */
@@ -311,6 +312,10 @@ parseline(int args, char *argv[])
stats = 1;
break;
+ case 'w': /* -w: wait for completion */
+ dowait = 1;
+ break;
+
default:
fprintf(stderr, "Invalid flag: %s\n", argv[i]);
}
OpenPOWER on IntegriCloud