Skip to content

Commit

Permalink
zfsbootmenu-help: add system report section to online help
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Nov 27, 2023
1 parent e66021a commit 691e332
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zfsbootmenu/libexec/zfsbootmenu-help
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ fi
for doc in "${doc_path}"/* ; do
SECTIONS+=( "${doc} $( head -1 "${doc}" )" )
done
SECTIONS+=( "zreport $( colorize white 'System Report' )" )

while getopts "lL:s:" opt; do
case "${opt}" in
Expand All @@ -92,7 +93,11 @@ while getopts "lL:s:" opt; do
exit
;;
s)
cat "${OPTARG}"
if [ "${OPTARG}" == "zreport" ]; then
/libexec/zfunc zreport
else
cat "${OPTARG}"
fi
exit
;;
?)
Expand Down

0 comments on commit 691e332

Please sign in to comment.