=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.104 retrieving revision 1.105 diff -u -r1.104 -r1.105 --- openbsd/update_openbsd/update_openbsd 2017/12/11 02:53:13 1.104 +++ openbsd/update_openbsd/update_openbsd 2017/12/11 02:58:57 1.105 @@ -52,6 +52,10 @@ #what $1 | sed -ne 's/[[:blank:]]\{1,\}//p' } +kernel_is_multiprocessor() { + printf "find cpu*\nexit\n" | config -e $1 2>/dev/null | grep -q "cpu\* at " +} + version_in() { local _proto=${FTP%%://*} local _file @@ -239,6 +243,7 @@ cd $KERNEL_ROOT BOOT_KERNEL=$( find_boot_kernel ) BOOT_KERNEL_VERSION=$( kernel_file_version $BOOT_KERNEL ) + kernel_is_multiprocessor $BOOT_KERNEL && BOOT_KERNEL=bsd.mp cd $OLDPWD umount_boot_device