diff options
Diffstat (limited to 'rc.d/rc.sysinit')
-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 |