|
|
# K_EXTRAEINFO - this is a new-line seperated list of einfo displays in | # K_EXTRAEINFO - this is a new-line seperated list of einfo displays in |
# postinst and can be used to carry additional postinst | # postinst and can be used to carry additional postinst |
# messages | # messages |
# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo's |
# K_EXTRAELOG - same as K_EXTRAEINFO except using elog instead of einfo |
|
# K_EXTRAEWARN - same as K_EXTRAEINFO except using ewarn instead of einfo |
# K_SYMLINK - if this is set, then forcably create symlink anyway | # K_SYMLINK - if this is set, then forcably create symlink anyway |
# | # |
# K_DEFCONFIG - Allow specifying a different defconfig target. | # K_DEFCONFIG - Allow specifying a different defconfig target. |
|
|
[[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys | [[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys |
| |
echo | echo |
einfo "If you are upgrading from a previous kernel, you may be interested" |
elog "If you are upgrading from a previous kernel, you may be interested" |
einfo "in the following documents:" |
elog "in the following documents:" |
einfo " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml" |
elog " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml" |
kernel_is_2_6 && einfo " - 2.4 to 2.6 migration guide: http://www.gentoo.org/doc/en/migration-to-2.6.xml" |
kernel_is_2_6 && elog " - 2.4 to 2.6 migration guide: http://www.gentoo.org/doc/en/migration-to-2.6.xml" |
echo | echo |
| |
# if K_EXTRAEINFO is set then lets display it now | # if K_EXTRAEINFO is set then lets display it now |
|
|
while read -s ELINE; do einfo "${ELINE}"; done | while read -s ELINE; do einfo "${ELINE}"; done |
fi | fi |
| |
|
# if K_EXTRAELOG is set then lets display it now |
|
if [[ -n ${K_EXTRAELOG} ]]; then |
|
echo ${K_EXTRAELOG} | fmt | |
|
while read -s ELINE; do elog "${ELINE}"; done |
|
fi |
|
|
# if K_EXTRAEWARN is set then lets display it now | # if K_EXTRAEWARN is set then lets display it now |
if [[ -n ${K_EXTRAEWARN} ]]; then | if [[ -n ${K_EXTRAEWARN} ]]; then |
echo ${K_EXTRAEWARN} | fmt | | echo ${K_EXTRAEWARN} | fmt | |
|
|
} | } |
| |
postinst_headers() { | postinst_headers() { |
einfo "Kernel headers are usually only used when recompiling your system libc, as" |
elog "Kernel headers are usually only used when recompiling your system libc, as" |
einfo "such, following the installation of newer headers, it is advised that you" |
elog "such, following the installation of newer headers, it is advised that you" |
einfo "re-merge your system libc." |
elog "re-merge your system libc." |
einfo "Failure to do so will cause your system libc to not make use of newer" |
elog "Failure to do so will cause your system libc to not make use of newer" |
einfo "features present in the updated kernel headers." |
elog "features present in the updated kernel headers." |
} | } |
| |
# pkg_setup functions | # pkg_setup functions |