On 03.11.21 15:57, Michael Adler wrote:
> Adding --raw to the bg_printenv command-line enables raw output mode
> which can be used for shell scripting purposes.
> 
> Examples:
> 
> * Bring the fields as variables into your shell:
> 
> $ source <(bg_printenv --current --output kernel,ustate --raw)
> $ echo "kernel: $KERNEL, ustate: $USTATE"
> kernel: C:BOOTA:linux.efi, ustate: 0
> 
> * Assing the current ustate to a variable:
> 
> $ USTATE=$(bg_printenv --current --output ustate --raw)
> $ echo "$USTATE"
> USTATE=0
> 

Ok, then the reason for --output is to enable --raw, machine parsing.
Then it's enough to reference that in the previous patch.

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/4a6aa9b0-6d92-e7fd-aff3-92349ab66f98%40siemens.com.

Reply via email to