From f50d7bfc5330660659875e1ba4c47834dbddf88c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 13 Aug 1999 21:33:28 +0000 Subject: add a boot_kernel.h file --- rc.d/rc.sysinit | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'rc.d') 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 -- cgit v1.2.1