aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-08-16 16:01:34 +0000
committerBill Nottingham <notting@redhat.com>1999-08-16 16:01:34 +0000
commit320273c7d4c3b0c69252036a2a6cbd5a63e01537 (patch)
tree7ece28f1aaa2a3cbb6c83d0fc8ead7f6d0e22224 /rc.d
parent9fdf71e96816325e7ca5d0433194fd149380e070 (diff)
downloadinitscripts-320273c7d4c3b0c69252036a2a6cbd5a63e01537.tar
initscripts-320273c7d4c3b0c69252036a2a6cbd5a63e01537.tar.gz
initscripts-320273c7d4c3b0c69252036a2a6cbd5a63e01537.tar.bz2
initscripts-320273c7d4c3b0c69252036a2a6cbd5a63e01537.tar.xz
initscripts-320273c7d4c3b0c69252036a2a6cbd5a63e01537.zip
*** empty log message ***
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit8
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