blob: 137c15ec6f94862fcd17e8903fc9796f789674a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
#
# Generate a header that defines the boot kernel.
#
KVER=`uname -r | sed 's/[^a-zA-Z]//g'`
cat > /boot/kernel.h << EOF
/* This file is automatically generated at boot time. */
#ifndef __BOOT_KERNEL_H_
#define __BOOT_KERNEL_H_
#define __BOOT_KERNEL_vrdr 0
#define __BOOT_KERNEL_tape 0
#undef __BOOT_KERNEL_$KVER
#define __BOOT_KERNEL_$KVER 1
#endif
EOF
|