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

Comparing pbcdedit/pbcdedit (file contents):
Revision 1.21 by root, Wed Aug 14 23:36:49 2019 UTC vs.
Revision 1.22 by root, Wed Aug 14 23:37:53 2019 UTC

717and modify it or extract data from it. This is done by executing a series 717and modify it or extract data from it. This is done by executing a series
718of "editing instructions" which are explained here. 718of "editing instructions" which are explained here.
719 719
720=over 720=over
721 721
722=item get I<object> I<element> 722=item C<get> I<object> I<element>
723 723
724Reads the BCD element I<element> from the BCD object I<object> and writes 724Reads the BCD element I<element> from the BCD object I<object> and writes
725it to standard output, followed by a newline. The I<object> can be a GUID 725it to standard output, followed by a newline. The I<object> can be a GUID
726or a human-readable alias, or the special string C<{default}>, which will 726or a human-readable alias, or the special string C<{default}>, which will
727refer to the default BCD object. 727refer to the default BCD object.
728 728
729Example: find description of the default BCD object. 729Example: find description of the default BCD object.
730 730
731 pbcdedit parse BCD get "{default}" description 731 pbcdedit parse BCD get "{default}" description
732 732
733=item set I<object> I<element> I<value> 733=item C<set> I<object> I<element> I<value>
734 734
735Similar to C<get>, but sets the element to the given I<value> instead. 735Similar to C<get>, but sets the element to the given I<value> instead.
736 736
737Example: change the bootmgr default too 737Example: change the bootmgr default too
738C<{b097d2ad-bc00-11e9-8a9a-525400123456}>: 738C<{b097d2ad-bc00-11e9-8a9a-525400123456}>:
739 739
740 pbcdedit edit BCD set "{bootmgr}" resumeobject "{b097d2ad-bc00-11e9-8a9a-525400123456}" 740 pbcdedit edit BCD set "{bootmgr}" resumeobject "{b097d2ad-bc00-11e9-8a9a-525400123456}"
741 741
742=item eval I<perlcode> 742=item C<eval> I<perlcode>
743 743
744This takes the next argument, interprets it as Perl code and 744This takes the next argument, interprets it as Perl code and
745evaluates it. This allows you to do more complicated modifications or 745evaluates it. This allows you to do more complicated modifications or
746extractions. 746extractions.
747 747
770 770
771The example given for C<set> could be expressed like this: 771The example given for C<set> could be expressed like this:
772 772
773 pbcdedit edit BCD eval '$BCD->{$DEFAULT}{resumeobject} = "{b097d2ad-bc00-11e9-8a9a-525400123456}"' 773 pbcdedit edit BCD eval '$BCD->{$DEFAULT}{resumeobject} = "{b097d2ad-bc00-11e9-8a9a-525400123456}"'
774 774
775=item do I<path> 775=item C<do> I<path>
776 776
777Similar to C<eval>, above, but instead of using the argument as perl code, 777Similar to C<eval>, above, but instead of using the argument as perl code,
778it loads the perl code from the given file and executes it. This makes it 778it loads the perl code from the given file and executes it. This makes it
779easier to write more complicated or larger programs. 779easier to write more complicated or larger programs.
780 780
781=back 781=back
782
782 783
783=head1 SEE ALSO 784=head1 SEE ALSO
784 785
785For ideas on what you can do, and some introductory material, try 786For ideas on what you can do, and some introductory material, try
786L<http://www.mistyprojects.co.uk/documents/BCDEdit/index.html>. 787L<http://www.mistyprojects.co.uk/documents/BCDEdit/index.html>.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines