ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/pbcdedit/pbcdedit
(Generate patch)

Comparing pbcdedit/pbcdedit (file contents):
Revision 1.70 by root, Sun Sep 8 16:50:39 2019 UTC vs.
Revision 1.71 by root, Sun Sep 15 01:12:18 2019 UTC

24our $VERSION = '1.4'; 24our $VERSION = '1.4';
25our $JSON_VERSION = 3; # the version of the json objects generated by this program 25our $JSON_VERSION = 3; # the version of the json objects generated by this program
26 26
27our $CHANGELOG = <<EOF; 27our $CHANGELOG = <<EOF;
28 28
29 - add "del" edit instruction.
29 - work around lsblk bug sometimes giving "dos" pttype for gpt partitions. 30 - work around lsblk bug sometimes giving "dos" pttype for gpt partitions.
30 - bootmenupolicy in synopsis must be set to 0 for text menu. 31 - bootmenupolicy in synopsis must be set to 0 for text menu.
31 - minor doc fxes. 32 - minor doc fxes.
32 33
331.4 Thu Aug 22 10:48:22 CEST 2019 341.4 Thu Aug 22 10:48:22 CEST 2019
825 826
826Example: change the bootmgr default too 827Example: change the bootmgr default too
827C<{b097d2ad-bc00-11e9-8a9a-525400123456}>: 828C<{b097d2ad-bc00-11e9-8a9a-525400123456}>:
828 829
829 pbcdedit edit BCD set "{bootmgr}" default "{b097d2ad-bc00-11e9-8a9a-525400123456}" 830 pbcdedit edit BCD set "{bootmgr}" default "{b097d2ad-bc00-11e9-8a9a-525400123456}"
831
832=item C<del> I<object> I<element>
833
834Similar to C<get>, but removed the BCD element from the specified BCD object.
830 835
831=item C<eval> I<perlcode> 836=item C<eval> I<perlcode>
832 837
833This takes the next argument, interprets it as Perl code and 838This takes the next argument, interprets it as Perl code and
834evaluates it. This allows you to do more complicated modifications or 839evaluates it. This allows you to do more complicated modifications or
2469 2474
2470 $object = $object eq "{default}" ? $default : dec_wguid enc_wguid $object; 2475 $object = $object eq "{default}" ? $default : dec_wguid enc_wguid $object;
2471 2476
2472 $bcd->{$object}{$elem} = $value; 2477 $bcd->{$object}{$elem} = $value;
2473 2478
2479 } elsif ($insn eq "del") {
2480 my $object = shift @insns;
2481 my $elem = shift @insns;
2482
2483 $object = $object eq "{default}" ? $default : dec_wguid enc_wguid $object;
2484
2485 delete $bcd->{$object}{$elem};
2486
2474 } elsif ($insn eq "eval") { 2487 } elsif ($insn eq "eval") {
2475 my $perl = shift @insns; 2488 my $perl = shift @insns;
2476 bcd_edit_eval "#line 1 'eval'\n$perl"; 2489 bcd_edit_eval "#line 1 'eval'\n$perl";
2477 2490
2478 } elsif ($insn eq "do") { 2491 } elsif ($insn eq "do") {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines