diff options
Diffstat (limited to 'upgrade-kernel')
-rwxr-xr-x | upgrade-kernel | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/upgrade-kernel b/upgrade-kernel index d0ecb19..dd57678 100755 --- a/upgrade-kernel +++ b/upgrade-kernel @@ -1,10 +1,7 @@ #!/bin/sh -# -# NOTE: call from kernel source dir -# - +if [ ! -f .config ]; then echo "Call from kernel source dir!"; exit; fi V=`pwd | ruby -e "puts STDIN.gets.split('/').last.split('-').last"` make mrproper cp -v ../config .config @@ -15,9 +12,9 @@ sudo /sbin/lilo sudo rm /usr/src/linux sudo ln -s $(pwd) /usr/src/linux cd /home/pks/src/tp_smapi/ -sudo make install KVER=$V KSRC=/home/pks/stuff/kernelbuild/linux-$V KBUILD=/home/pks/stuff/kernelbuild/linux-$V +sudo make install KVER=$V KSRC=/home/pks/var/kernelbuild/linux-$V KBUILD=/home/pks/var/kernelbuild/linux-$V sudo make clean -sudo chown -R pks:pks * .* /home/pks/src/tp_smapi/ /home/pks/stuff/kernelbuild/linux-* +sudo chown -R pks:pks * .* /home/pks/src/tp_smapi/ /home/pks/var/kernelbuild/linux-* echo "=================" cd /lib/modules/ pwd |