[scripts] do not hardcode sys-kernel/linux-sabayon in script

This commit is contained in:
Fabio Erculiani 2012-10-30 20:32:39 +01:00
parent 4e60cbb13b
commit b84b31433e

View File

@ -37,7 +37,7 @@ equo upgrade || exit 1
echo "-5" | equo conf update
# check if a kernel update is needed
kernel_target_pkg="sys-kernel/linux-sabayon"
kernel_target_pkg="$(equo match -q --installed virtual/linux-binary)"
current_kernel=$(equo match --installed "${kernel_target_pkg}" -qv)
available_kernel=$(equo match "${kernel_target_pkg}" -qv)
if [ "${current_kernel}" != "${available_kernel}" ] && \