summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalex <halex@openbsd.org>2014-02-23 20:09:59 +0000
committerhalex <halex@openbsd.org>2014-02-23 20:09:59 +0000
commit0e60122f771efd0569b81741d463d4e9a4dc6c4d (patch)
treea291323069604011949a9567fde0976e2b592aca
parentcheck for unsigned overflow; not reachable in OpenSSH but others might (diff)
downloadwireguard-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.sh4
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; }