summaryrefslogtreecommitdiff
path: root/usr.sbin/fw_update
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2012-09-17 18:28:44 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2012-09-17 18:28:44 +0000
commit25d090d07314d051f9bdc8a54ef7bdf0c2a4aec5 (patch)
tree14b7baeb049e2e919ed68af7df70f3dbb613accf /usr.sbin/fw_update
parent09ae621a3adfba85c5299f4dabf608c05e3a0b9e (diff)
simplify the detection of release/stable vs. snapshot kernel by
using the same logic from install.sub ok halex@
Diffstat (limited to 'usr.sbin/fw_update')
-rw-r--r--usr.sbin/fw_update/fw_update.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/fw_update/fw_update.sh b/usr.sbin/fw_update/fw_update.sh
index f322606a0fd..628fd9a84b1 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.11 2012/09/05 08:16:34 espie Exp $
+# $OpenBSD: fw_update.sh,v 1.12 2012/09/17 18:28:43 rpe Exp $
# Copyright (c) 2011 Alexander Hall <alexander@beard.se>
#
# Permission to use, copy, modify, and distribute this software for any
@@ -48,7 +48,7 @@ set -- $(sysctl -n kern.version | sed 's/^OpenBSD \([0-9]\.[0-9]\)\([^ ]*\).*/\1
version=$1
tag=$2
-[ -n "$tag" -a X"$tag" != X"-stable" ] && version=snapshots
+[[ $tag == -!(stable) ]] && version=snapshots
export PKG_PATH=http://firmware.openbsd.org/firmware/$version/
installed=$(pkg_info -q)