Lines 29-35
determine_KV() {
Link Here
|
29 |
then |
29 |
then |
30 |
gen_die "Kernel Makefile (${KERNEL_DIR}/Makefile) missing. Maybe re-install the kernel sources." |
30 |
gen_die "Kernel Makefile (${KERNEL_DIR}/Makefile) missing. Maybe re-install the kernel sources." |
31 |
fi |
31 |
fi |
32 |
|
32 |
set -x |
33 |
VER=$(grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };') |
33 |
VER=$(grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };') |
34 |
PAT=$(grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };') |
34 |
PAT=$(grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };') |
35 |
SUB=$(grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };') |
35 |
SUB=$(grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };') |
Lines 71-77
determine_KV() {
Link Here
|
71 |
KV=${VER}.${PAT}.${SUB}${EXV} |
71 |
KV=${VER}.${PAT}.${SUB}${EXV} |
72 |
fi |
72 |
fi |
73 |
fi |
73 |
fi |
74 |
|
74 |
set +x |
75 |
KV_MAJOR=$(echo ${KV} | cut -f1 -d.) |
75 |
KV_MAJOR=$(echo ${KV} | cut -f1 -d.) |
76 |
KV_MINOR=$(echo ${KV} | cut -f2 -d.) |
76 |
KV_MINOR=$(echo ${KV} | cut -f2 -d.) |
77 |
KV_NUMERIC=$((${KV_MAJOR} * 1000 + ${KV_MINOR})) |
77 |
KV_NUMERIC=$((${KV_MAJOR} * 1000 + ${KV_MINOR})) |