PIBOOTCTL-SHOW(1) | pibootctl | PIBOOTCTL-SHOW(1) |
pibootctl-show - pibootctl manual
pibootctl show [-h] [-a] [--json | --yaml | --shell] name [pattern]
Display the specified stored boot configuration, or the sub-set of its settings that match the specified pattern.
The show command is the equivalent of the status command for stored boot configurations. By default it displays only the settings in the specified configuration that have been modified from their default:
$ pibootctl show 720p +------------------------+----------------+ | Name | Value | |------------------------+----------------| | video.hdmi0.group | 1 (CEA) | | video.hdmi0.mode | 4 (720p @60Hz) | +------------------------+----------------+
The full set of settings can be displayed (which is usually several pages long, and thus will implicitly invoke the system's pager) can be displayed with the --all option:
$ pibootctl show 720p --all +------------------------------+----------+--------------------------------+ | Name | Modified | Value | |------------------------------+----------+--------------------------------| ... | video.hdmi0.enabled | | auto | | video.hdmi0.encoding | | 0 (auto; 1 for CEA, 2 for DMT) | | video.hdmi0.flip | | 0 (none) | | video.hdmi0.group | x | 1 (CEA) | | video.hdmi0.mode | x | 4 (720p @60Hz) | | video.hdmi0.mode.force | | off | | video.hdmi0.rotate | | 0 | | video.hdmi0.timings | | [] | | video.hdmi1.audio | | auto | | video.hdmi1.boost | | 5 | ...
Note that when --all is specified, a "Modified" column is included in the output to indicate which settings are no longer default.
As with the status command, the list of settings can be further filtered by specified a pattern with the command. The pattern can include any of the common shell wildcard characters:
For example:
$ pibootctl show --all 720p i2c.* +-------------+----------+--------+ | Name | Modified | Value | |-------------+----------+--------| | i2c.baud | | 100000 | | i2c.enabled | | off | +-------------+----------+--------+
For developers wishing to build on top of pibootctl, options are provided to produce the output in JSON (--json), YAML (--yaml), and shell-friendly (--shell). These combine with all aforementioned options as expected:
$ pibootctl show --json --all 720p i2c.* {"i2c.baud": 100000, "i2c.enabled": false}
Dave Jones
2019-2020 Dave Jones
September 14, 2020 | 0.5.2 |