version 1.47, 2012/12/16 06:56:15 |
version 1.48, 2013/01/26 18:13:03 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.46 2012/12/16 03:29:02 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.47 2012/12/16 06:56:15 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
|
|
# We want to default to what we had |
# We want to default to what we had |
INSTALL_KERNELS="${BOOT_KERNEL#/}" |
INSTALL_KERNELS="${BOOT_KERNEL#/}" |
|
# if the boot kernel was our specially named bsd.sp, we install from bsd |
|
if [ X"$INSTALL_KERNELS" == X"bsd.sp" ]; then |
|
INSTALL_KERNELS="bsd" |
|
fi |
# with a second option of an mp kernel if is is a likely candidate |
# with a second option of an mp kernel if is is a likely candidate |
if [ X"$INSTALL_KERNELS" != X"bsd.mp" ]; then |
if [ X"$INSTALL_KERNELS" != X"bsd.mp" ]; then |
local _ncpu=$(sysctl -n hw.ncpufound) |
local _ncpu=$(sysctl -n hw.ncpufound) |