diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-19 17:56:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-19 17:56:04 +0000 |
commit | 8ed5d59c554077f36ecf88a31ba5169f6777c709 (patch) | |
tree | 9a6cece5666e8f7ce5909f9a299640a8f6d10846 /distrib/special/sysctl | |
parent | 90fdb320e64210bdbea1cbe460e0fd5a61de71ad (diff) |
If hw.ncpufound > 1, have the install script automatically prefer to use
bsd.mp instead of bsd (using -- mv bsd bsd.sp; mv bsd.mp bsd). anyone
who brings up boot.conf is an i386 bigot.
tested on almost all platforms that can do this, ok various people
Diffstat (limited to 'distrib/special/sysctl')
-rw-r--r-- | distrib/special/sysctl/sysctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/distrib/special/sysctl/sysctl.c b/distrib/special/sysctl/sysctl.c index 37be17a0a8b..1cd898c421f 100644 --- a/distrib/special/sysctl/sysctl.c +++ b/distrib/special/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.2 2009/04/19 00:59:39 deraadt Exp $ */ +/* $OpenBSD: sysctl.c,v 1.3 2009/04/19 17:56:03 deraadt Exp $ */ /* * Copyright (c) 2009 Theo de Raadt <deraadt@openbsd.org> @@ -37,6 +37,8 @@ int pint(struct var *); struct var vars[] = { { "hw.disknames", pstring, 2, { CTL_HW, HW_DISKNAMES }}, + { "hw.ncpufound", pint, 2, + { CTL_HW, HW_NCPUFOUND }}, }; int nflag; |