From 9fdf71e96816325e7ca5d0433194fd149380e070 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 13 Aug 1999 22:36:25 +0000 Subject: change kernel boot define --- rc.d/rc.sysinit | 8 ++++++-- 1 file 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 -- cgit