diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2014-02-23 20:10:00 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2014-02-23 20:10:00 +0000 |
commit | cb8b967139c39be7e9d2b12eb8bf0c913e3abe68 (patch) | |
tree | 7404141e6b06022d77bb7109566dc1e58e8542b6 /usr.sbin/fw_update | |
parent | 8b8081cac8c4edd66b1cc6be38774663270ca114 (diff) |
print out the path to the firmware packages in verbose mode, for use with
the upcoming -p <path> flag
Diffstat (limited to 'usr.sbin/fw_update')
-rw-r--r-- | usr.sbin/fw_update/fw_update.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/fw_update/fw_update.sh b/usr.sbin/fw_update/fw_update.sh index 7f8e882a5c3..b3d5a22e373 100644 --- a/usr.sbin/fw_update/fw_update.sh +++ b/usr.sbin/fw_update/fw_update.sh @@ -1,6 +1,6 @@ #!/bin/sh -# $OpenBSD: fw_update.sh,v 1.19 2014/01/30 00:12:09 halex Exp $ +# $OpenBSD: fw_update.sh,v 1.20 2014/02/23 20:09:59 halex Exp $ # Copyright (c) 2011 Alexander Hall <alexander@beard.se> # # Permission to use, copy, modify, and distribute this software for any @@ -113,6 +113,8 @@ elif $delete && [ -z "$update" ]; then exit 0 fi +$delete || verbose "Path to firmware: $PKG_PATH" + [ "$nop" ] || [ 0 = $(id -u) ] || { echo "${0##*/} must be run as root" >&2; exit 1; } |