diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-17 00:43:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-17 00:43:14 +0000 |
commit | e2cace4d6a88a30bc522c606087d15fdbe5af360 (patch) | |
tree | c282dd0eebe59ef3c6b66596f193f4f98ba1dd36 /distrib | |
parent | 26caa174c0650382944ad376ccc0cf14206f1c0d (diff) |
do not hardcode the version into the script; ok krw miod
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index af7aa3fd2ca..11ca825ab2a 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.549 2009/05/16 08:51:57 halex Exp $ +# $OpenBSD: install.sub,v 1.550 2009/05/17 00:43:13 deraadt Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -1800,7 +1800,7 @@ dmesg | sed -ne '/^OpenBSD /h;/^OpenBSD /!H;${g;p;}' >/var/run/dmesg.boot # Are we in a real release, or a snapshot? If this is a snapshot # install media, default us to a snapshot directory. FTPSETDIR=$SETDIR -CURRENT=$(scan_dmesg '/^OpenBSD 4.5\([^ ]*\).*$/s//\1/p') +CURRENT=$(scan_dmesg "/^OpenBSD $VNAME\([^ ]*\).*$/s//\1/p") [[ -n $CURRENT ]] && FTPSETDIR=snapshots/$ARCH # Scan /var/run/dmesg.boot for interesting devices. |