aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-08-13 22:36:25 +0000
committerBill Nottingham <notting@redhat.com>1999-08-13 22:36:25 +0000
commit9fdf71e96816325e7ca5d0433194fd149380e070 (patch)
treee378e678f0ca549085315fbee7e13d256506f222
parent406c33ccc49bd7c82674503c2e334401eb246b64 (diff)
downloadinitscripts-9fdf71e96816325e7ca5d0433194fd149380e070.tar
initscripts-9fdf71e96816325e7ca5d0433194fd149380e070.tar.gz
initscripts-9fdf71e96816325e7ca5d0433194fd149380e070.tar.bz2
initscripts-9fdf71e96816325e7ca5d0433194fd149380e070.tar.xz
initscripts-9fdf71e96816325e7ca5d0433194fd149380e070.zip
change kernel boot define
-rwxr-xr-xrc.d/rc.sysinit8
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