diff options
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 897338fc..eaa65c98 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -422,13 +422,17 @@ fi # Generate a header that defines the boot kernel. -KVER=`uname -r` +if uname -r | grep -q smp ; then + KVER="#define __BOOT_KERNEL_SMP" +else + KVER= +fi cat > /boot/kernel.h << EOF /* This file is automatically generated at boot time. */ #ifndef __KERNEL_VERSION_H_ #define __KERNEL_VERSION_H_ -#define __BOOT_KERNEL_VERSION "$KVER" +$KVER #endif EOF |