Commit 1be39256 authored by hark's avatar hark
Browse files

old

parent f4a92ab5
......@@ -82,6 +82,7 @@ if [ "$KERNELVERSION" == "latest" ]
then
echo 'latest'
get_latest_version
TYPE='stable'
elif [[ "$KERNELVERSION" == *"grsec" ]]
then
......@@ -183,13 +184,22 @@ function build_kernel() {
function create_links() {
echo "creating links with kernel nickname"
if [ -f "$kerneldir/$kernelname.vmlinuz" ]
then
rm "$kerneldir/$kernelname.vmlinuz.old" && true
mv "$kerneldir/$kernelname.vmlinuz" "$kerneldir/$kernelname.vmlinuz.old" && true
fi
if [ -f "$kerneldir/$TYPE.vmlinuz" ]
then
rm "$kerneldir/$TYPE.vmlinuz.old" && true
mv "$kerneldir/$TYPE.vmlinuz" "$kerneldir/$TYPE.vmlinuz.old" && true
fi
ln -s "$kerneldir/$imagename" "$kerneldir/$kernelname.vmlinuz"
ln -s "$kerneldir/$imagename" "$kerneldir/$TYPE.vmlinuz"
}
......
......@@ -87,7 +87,7 @@ class buildkernel::kernelprep (
'git',
'bison',
'flex',
'gcc-6-plugin-dev',
# 'gcc-6-plugin-dev',
'bc',
'gcc-8-plugin-dev',
'gcc-7-plugin-dev'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment