diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2016-11-03 12:40:09 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2016-11-03 12:40:09 +0000 |
commit | 0c00fcadbb341a1c575f9b516fde0aee4c851eb3 (patch) | |
tree | 579d722662496909ba76c321a7fa612e58e67406 /usr.sbin/syspatch | |
parent | dca0209b67114ebe3fa3231c61a1ae2769375468 (diff) |
Use hw.ncpufound.
Diffstat (limited to 'usr.sbin/syspatch')
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 566c57fa064..2880e208a13 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.27 2016/11/03 12:27:34 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.28 2016/11/03 12:40:08 ajacoutot Exp $ # # Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -255,8 +255,7 @@ set -A _KERNV -- $(sysctl -n kern.version | [[ -n ${PATCH_PATH} ]] [[ -d ${PATCH_PATH} ]] && PATCH_PATH="file://$(readlink -f ${PATCH_PATH})" -# XXX hw.ncpufound ? -[[ $(sysctl -n hw.ncpu) -gt 1 ]] && _BSDMP=true || _BSDMP=false +[[ $(sysctl -n hw.ncpufound) -gt 1 ]] && _BSDMP=true || _BSDMP=false _FETCH="/usr/bin/ftp -MV -k ${FTP_KEEPALIVE-0}" _PDIR="/var/syspatch" _REL=${_KERNV[0]} |