133 |
if [[ ${PVER%%.*} -gt 2 ]] |
if [[ ${PVER%%.*} -gt 2 ]] |
134 |
then |
then |
135 |
local sublevel="$(echo ${PVER} | cut -d. -f3)" |
local sublevel="$(echo ${PVER} | cut -d. -f3)" |
136 |
sed -i "s:^\(SUBLEVEL =\).*:\1 ${sublevel}:" Makefile || die |
sed -i "s:^\(SUBLEVEL =\).*:\1 ${sublevel}:" Makefile || die |
137 |
fi |
fi |
138 |
} |
} |
139 |
|
|
399 |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
400 |
then |
then |
401 |
# remove old image entry from grub |
# remove old image entry from grub |
402 |
new-kernel-pkg -v --rminitrd --remove ${KPVER}-${KBRANCH}-${KPBUILD} |
new-kernel-pkg -v --rminitrd --rmmodep --remove ${KPVER}-${KBRANCH}-${KPBUILD} |
403 |
fi |
fi |
404 |
} |
} |
405 |
|
|