linux headers pick
This commit is contained in:
parent
ad936b05bf
commit
82b4eb7050
1 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue