aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efibootmgr/efibootmgr.c
diff options
context:
space:
mode:
authorRebecca Cran <bcran@FreeBSD.org>2018-12-24 15:38:36 +0000
committerRebecca Cran <bcran@FreeBSD.org>2018-12-24 15:38:36 +0000
commita2581e80212e26a20bb09aacf307f377a8f48e43 (patch)
tree149ed93e7e46b947fe7e8bba3d168898b1ba1696 /usr.sbin/efibootmgr/efibootmgr.c
parent261e62db4c62ecab7c8d8055b1a548acb80c16dc (diff)
downloadsrc-a2581e80212e26a20bb09aacf307f377a8f48e43.tar.gz
src-a2581e80212e26a20bb09aacf307f377a8f48e43.zip
Activate support for efibootmgr(8) -b --bootnum parameter
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D18647
Notes
Notes: svn path=/head/; revision=342396
Diffstat (limited to 'usr.sbin/efibootmgr/efibootmgr.c')
-rw-r--r--usr.sbin/efibootmgr/efibootmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
index 8487774fb523..ca0a15549cb8 100644
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -96,6 +96,7 @@ typedef struct _bmgr_opts {
static struct option lopts[] = {
{"activate", required_argument, NULL, 'a'},
{"bootnext", required_argument, NULL, 'n'}, /* set bootnext */
+ {"bootnum", required_argument, NULL, 'b'},
{"bootorder", required_argument, NULL, 'o'}, /* set order */
{"copy", required_argument, NULL, 'C'}, /* Copy boot method */
{"create", no_argument, NULL, 'c'},
@@ -191,7 +192,7 @@ parse_args(int argc, char *argv[])
{
int ch;
- while ((ch = getopt_long(argc, argv, "A:a:B:C:cDe:hk:L:l:Nn:Oo:Tt:v",
+ while ((ch = getopt_long(argc, argv, "A:a:B:b:C:cDe:hk:L:l:Nn:Oo:Tt:v",
lopts, NULL)) != -1) {
switch (ch) {
case 'A':