linux headers pick

This commit is contained in:
Ohio2 2021-07-02 03:04:59 +02:00
parent ad936b05bf
commit 82b4eb7050

View file

@ -16,9 +16,18 @@ pkg_install(){
cd "${prefix}"/usr/src/linux-kernel
make mrproper
make headers
find ${prefix}/usr/include -name '.*' -delete
rm ${prefix}/usr/include/Makefile
cp -rv ${prefix}/usr/include $LFS/usr
find "${prefix}"/usr/include -name '.*' -delete
rm "${prefix}"/usr/include/Makefile
cp -rv "${prefix}"/usr/include $LFS/usr
else
read -p "No linux kernel found, do you want to install it?" -n 1 -r
echo ""
if [[ $response =~ ^[Yy]$ ]]
then
"${prefix}"/bin/spkg install linux-kernel
elif [[ $response =~ ^[Nn]$ ]]
exit 2
fi
fi
}