aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit16
1 files changed, 11 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index df697ab4..df838f6e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -486,17 +486,23 @@ fi
# Generate a header that defines the boot kernel.
if uname -r | grep -q smp ; then
- KVER="1"
+ SMP="1"
+ UP="0"
else
- KVER="0"
+ SMP="0"
+ UP="1"
fi
cat > /boot/kernel.h << EOF
/* This file is automatically generated at boot time. */
-#ifndef __KERNEL_VERSION_H_
-#define __KERNEL_VERSION_H_
+#ifndef __BOOT_KERNEL_H_
+#define __BOOT_KERNEL_H_
#ifndef __BOOT_KERNEL_SMP
-#define __BOOT_KERNEL_SMP $KVER
+#define __BOOT_KERNEL_SMP $SMP
+#endif
+
+#ifndef __BOOT_KERNEL_UP
+#define __BOOT_KERNEL_UP $UP
#endif
#endif