Author: bcran
Date: Mon Dec 24 15:38:36 2018
New Revision: 342396
URL: https://svnweb.freebsd.org/changeset/base/342396

Log:
  Activate support for efibootmgr(8) -b --bootnum parameter
  
  Sponsored by: Netflix
  Differential Revision:        https://reviews.freebsd.org/D18647

Modified:
  head/usr.sbin/efibootmgr/efibootmgr.c

Modified: head/usr.sbin/efibootmgr/efibootmgr.c
==============================================================================
--- head/usr.sbin/efibootmgr/efibootmgr.c       Mon Dec 24 15:08:19 2018        
(r342395)
+++ head/usr.sbin/efibootmgr/efibootmgr.c       Mon Dec 24 15:38:36 2018        
(r342396)
@@ -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':
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to