diff options
author | 2014-02-23 20:09:59 +0000 | |
---|---|---|
committer | 2014-02-23 20:09:59 +0000 | |
commit | 0e60122f771efd0569b81741d463d4e9a4dc6c4d (patch) | |
tree | a291323069604011949a9567fde0976e2b592aca | |
parent | check for unsigned overflow; not reachable in OpenSSH but others might (diff) | |
download | wireguard-openbsd-0e60122f771efd0569b81741d463d4e9a4dc6c4d.tar.xz wireguard-openbsd-0e60122f771efd0569b81741d463d4e9a4dc6c4d.zip |
print out the path to the firmware packages in verbose mode, for use with
the upcoming -p <path> flag
-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; } |