freebsd-src/usr.sbin/fwget
Bjoern A. Zeeb 10aa369afd fwget: simplify adding firmware images to pkg to install
Rather than using echo to return the firmware package name, call a
new function (addpkg) which will also deal with (i) no leading space
and (ii) remove duplicates (as some devices have dual-wifi-cards).
In addition we won't have a line break when having multiple packages.

While here also do not call pkg(8) anymore if there is no package to
install and use the correct variable to install all and not just the
last found package.

Reviewed by:	manu, bapt
Differential Revision: https://reviews.freebsd.org/D40071
2023-05-20 11:13:12 +00:00
..
pci fwget: simplify adding firmware images to pkg to install 2023-05-20 11:13:12 +00:00
fwget.8
fwget.sh fwget: simplify adding firmware images to pkg to install 2023-05-20 11:13:12 +00:00
Makefile