-.\" $OpenBSD: fw_update.8,v 1.1 2022/01/05 16:28:19 afresh1 Exp $
+.\" $OpenBSD: fw_update.8,v 1.2 2022/01/06 19:27:01 afresh1 Exp $
.\"
.\" Copyright (c) 2011 Alexander Hall <alexander@beard.se>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 5 2022 $
+.Dd $Mdocdate: January 6 2022 $
.Dt FW_UPDATE 8
.Os
.Sh NAME
.Nd install non-free firmware packages
.Sh SYNOPSIS
.Nm
-.Op Fl adDnv
+.Op Fl adFnv
.Op Fl p Ar path
.Op Ar driver | file ...
.Sh DESCRIPTION
If used in conjunction with
.Fl a ,
delete firmware for all drivers.
-.It Fl D
+.It Fl F
Download drivers only.
By default downloads to the current directory.
Secifying a URL with
#!/bin/ksh
-# $OpenBSD: fw_update.sh,v 1.24 2022/01/05 16:32:46 afresh1 Exp $
+# $OpenBSD: fw_update.sh,v 1.25 2022/01/06 19:27:01 afresh1 Exp $
#
# Copyright (c) 2021 Andrew Hewus Fresh <afresh1@openbsd.org>
#
}
ALL=false
-OPT_D=
-while getopts :adDnp:v name
+OPT_F=
+while getopts :adFnp:v name
do
case "$name" in
a) ALL=true ;;
d) DELETE=true ;;
- D) OPT_D=true ;;
+ F) OPT_F=true ;;
n) DRYRUN=true ;;
p) LOCALSRC="$OPTARG" ;;
v) VERBOSE=true ;;
fi
# "Download only" means local dir and don't install
-if [ "$OPT_D" ]; then
+if [ "$OPT_F" ]; then
INSTALL=false
LOCALSRC="${LOCALSRC:-.}"
elif [ "$LOCALSRC" ]; then
set -sA devices -- "$@"
if "$DELETE"; then
- [ "$OPT_D" ] && usage 22
+ [ "$OPT_F" ] && usage 22
set -A installed
if [ "${devices[*]:-}" ]; then