post
poster: psYchotic
description: My kernel compiling script
language: plain text
[download]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if [ -n "$1" ]
then
    if [ -w `dirname $1` ]
    then
    true
    else
    echo "You do not have write permissions to the destination"
    exit
    fi
else
echo "You did not tell me where to put the kernel image!"
exit
fi

make clean && make -j3 && make -j3 modules_install && cp arch/x86_64/boot/bzImage $1