summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2019-10-19 13:14:24 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2019-10-19 13:14:24 +0000
commit0647a8191b1b64add344b7921a97303f1ad3c1ba (patch)
tree2329f743d5f0f5b69b18d78f7631e568e5217dca /distrib/miniroot
parentb48a5b6efb6c4529dbac9c6b3a844896a3bc98ca (diff)
Determine the OS version in a way that won't break after 9.9.
Do it the same way in all three copies of the code. Based on a patch from Chris Waddey. with & ok ajacoutot
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 96c7e992fa8..b86df4f2628 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1144 2019/10/01 02:11:41 deraadt Exp $
+# $OpenBSD: install.sub,v 1.1145 2019/10/19 13:14:23 tb Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -2831,7 +2831,7 @@ finish_up() {
# on the console and in the rc.firsttime output mail.
isin "$ARCH" $_syspatch_archs && cat <<__EOT >>/mnt/etc/rc.firsttime
set -A _KERNV -- \$(sysctl -n kern.version |
- sed 's/^OpenBSD \([0-9]\.[0-9]\)\([^ ]*\).*/\1 \2/;q')
+ sed 's/^OpenBSD \([1-9][0-9]*\.[0-9]\)\([^ ]*\).*/\1 \2/;q')
if ((\${#_KERNV[*]} == 1)) && [[ -s /etc/installurl ]] &&
_CKPATCH=\$(mktemp /tmp/_ckpatch.XXXXXXXXXX); then
echo "Checking for available binary patches..."