diff options
-rwxr-xr-x | rc.d/rc.sysinit | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index eaa65c98..c88b75c6 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -423,16 +423,18 @@ fi # Generate a header that defines the boot kernel. if uname -r | grep -q smp ; then - KVER="#define __BOOT_KERNEL_SMP" + KVER="1" else - KVER= + KVER="0" fi cat > /boot/kernel.h << EOF /* This file is automatically generated at boot time. */ #ifndef __KERNEL_VERSION_H_ #define __KERNEL_VERSION_H_ -$KVER +#ifndef __BOOT_KERNEL_SMP +#define __BOOT_KERNEL_SMP $KVER +#endif #endif EOF |