mirror of
https://github.com/opnsense/src.git
synced 2026-04-05 01:15:30 -04:00
Allow a 'start <drive>' command.
This commit is contained in:
parent
2096c6b68a
commit
c3d71cfc5e
1 changed files with 4 additions and 1 deletions
|
|
@ -533,7 +533,10 @@ vinum_start(int argc, char *argv[], char *arg0[])
|
|||
int doit = 0; /* set to 1 if we pass our tests */
|
||||
switch (type) {
|
||||
case drive_object:
|
||||
fprintf(stderr, "Can't start a drive: %s\n", argv[index]);
|
||||
if (drive.state == drive_up) /* already up */
|
||||
fprintf(stderr, "%s is already up\n", drive.label.name);
|
||||
else
|
||||
doit = 1;
|
||||
break;
|
||||
|
||||
case sd_object:
|
||||
|
|
|
|||
Loading…
Reference in a new issue