diff options
author | Bill Nottingham <notting@redhat.com> | 1999-08-13 21:33:28 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-08-13 21:33:28 +0000 |
commit | f50d7bfc5330660659875e1ba4c47834dbddf88c (patch) | |
tree | 26b59289bbaef281284347c544b32a48f3267ee2 | |
parent | 3ec78dca9e6dee50cda7e5aed7410a9c2104b04b (diff) | |
download | initscripts-f50d7bfc5330660659875e1ba4c47834dbddf88c.tar initscripts-f50d7bfc5330660659875e1ba4c47834dbddf88c.tar.gz initscripts-f50d7bfc5330660659875e1ba4c47834dbddf88c.tar.bz2 initscripts-f50d7bfc5330660659875e1ba4c47834dbddf88c.tar.xz initscripts-f50d7bfc5330660659875e1ba4c47834dbddf88c.zip |
add a boot_kernel.h file
-rwxr-xr-x | rc.d/rc.sysinit | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index e48902d6..897338fc 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -420,6 +420,19 @@ if [ -f /proc/scsi/scsi ] && cat /proc/scsi/scsi | grep -q 'Type: Sequential-A fi fi + +# Generate a header that defines the boot kernel. +KVER=`uname -r` +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" + +#endif +EOF + # Now that we have all of our basic modules loaded and the kernel going, # let's dump the syslog ring somewhere so we can find it later dmesg > /var/log/dmesg |