aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-18 20:15:28 +0000
committerBill Nottingham <notting@redhat.com>1999-09-18 20:15:28 +0000
commit1927c6227cdd7f0cf979077b3b14dee386667b8d (patch)
treee400f5568c0a3a2ec66e0799b46eb262ce9da73c /rc.d
parent55f093d2b8eed559545430ecb94f633ecc10faae (diff)
downloadinitscripts-1927c6227cdd7f0cf979077b3b14dee386667b8d.tar
initscripts-1927c6227cdd7f0cf979077b3b14dee386667b8d.tar.gz
initscripts-1927c6227cdd7f0cf979077b3b14dee386667b8d.tar.bz2
initscripts-1927c6227cdd7f0cf979077b3b14dee386667b8d.tar.xz
initscripts-1927c6227cdd7f0cf979077b3b14dee386667b8d.zip
define uniprocessor in boot/kernel.h too
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit16
1 files changed, 11 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index df697ab4..df838f6e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -486,17 +486,23 @@ fi
# Generate a header that defines the boot kernel.
if uname -r | grep -q smp ; then
- KVER="1"
+ SMP="1"
+ UP="0"
else
- KVER="0"
+ SMP="0"
+ UP="1"
fi
cat > /boot/kernel.h << EOF
/* This file is automatically generated at boot time. */
-#ifndef __KERNEL_VERSION_H_
-#define __KERNEL_VERSION_H_
+#ifndef __BOOT_KERNEL_H_
+#define __BOOT_KERNEL_H_
#ifndef __BOOT_KERNEL_SMP
-#define __BOOT_KERNEL_SMP $KVER
+#define __BOOT_KERNEL_SMP $SMP
+#endif
+
+#ifndef __BOOT_KERNEL_UP
+#define __BOOT_KERNEL_UP $UP
#endif
#endif