HomeFreeBSD

fwget: add -q for quiet output

Description

fwget: add -q for quiet output

Introduce -q to quieten other output (unless -v is also given).

pkg-install(8) currently has no option to allow skipping unavail
packages but it will just fail.
We would realy want to try to install as much firmware found as
possible from the installer.
Work around this by doing one firmware package at a time.
For that it is highly helpful to be able to query (or possibly re-query)
all outstanding fimrware packages.
-q together with -n only shows each package to be installed one by line.

Once https://github.com/freebsd/pkg/issues/2195 will be implemented
we could undo this part of the change and future changes to the installer
and use the new option for pkg-install(8) there.

While here switch to getopts so -qn works and not just -q -n.

Sponsored by: The FreeBSD Foundation
Reviewed by: manu
Approved by: re (cperciva)
Differential Revision: https://reviews.freebsd.org/D47445

(cherry picked from commit 1eb3f15c149b9a2e5b6f5e10aed454fc85945bbd)
(cherry picked from commit 814a49d65ace83b7a955cca32ff243f4abe7cd50)

Details

Provenance
bzAuthored on Nov 4 2024, 11:59 PM
Reviewer
manu
Differential Revision
D47445: fwget: add -N to only show each package to be installed one by line
Parents
rG8c6df7ead19c: release: add wifi-firmware-kmod@release to ship as package
Branches
Unknown
Tags
Unknown