Lines 3-14
Link Here
|
3 |
get_KV() { |
3 |
get_KV() { |
4 |
local SUB |
4 |
local SUB |
5 |
local EXV |
5 |
local EXV |
|
|
6 |
local LOV |
6 |
|
7 |
|
7 |
VER=`grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` |
8 |
VER=`grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` |
8 |
PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` |
9 |
PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` |
9 |
SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` |
10 |
SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` |
10 |
EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"` |
11 |
EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"` |
11 |
KV=${VER}.${PAT}.${SUB}${EXV} |
12 |
LOV=`grep ^CONFIG_LOCALVERSION\= ${KERNEL_DIR}/.config | sed -e "s/CONFIG_LOCALVERSION=\"\(.*\)\"/\1/"` |
|
|
13 |
|
14 |
echo localversion is ${LOV} |
15 |
|
16 |
KV=${VER}.${PAT}.${SUB}${EXV}${LOV} |
12 |
} |
17 |
} |
13 |
|
18 |
|
14 |
determine_real_args() { |
19 |
determine_real_args() { |