commit 9b8fae2f20ccaf7d84807f22e6087b91318803f5
parent 25d8a2728fea7b22473e9dec79f3a2d9a3c3630e
Author: sin <sin@2f30.org>
Date: Thu, 29 Jun 2017 11:31:45 +0100
sysbuild: Simplify kernel selection
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/sysbuild b/sysbuild
@@ -7,10 +7,7 @@
# sysbuild k && reboot
# sysbuild w x f && reboot
-K=GENERIC.MP
-
-NCPU=$(sysctl -n hw.ncpufound)
-test $NCPU -eq 1 && K=GENERIC
+K=`sysctl -n kern.osversion | cut -d# -f1`
upgradekernel() {
cd /usr/src/sys/arch/$(machine)/compile/$K