diff options
author | Patrick Simianer <p@simianer.de> | 2014-10-09 20:44:15 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-10-09 20:44:15 +0100 |
commit | ca41eddfdc979955105cce572e659941544d6f6d (patch) | |
tree | bf446902e8323e58c6fc14dce808b9719da7d3f6 /upgrade_kernel | |
parent | 0aae427eb3838297f6e204c2961739ef834762cf (diff) |
alles neu macht der mai
Diffstat (limited to 'upgrade_kernel')
-rwxr-xr-x | upgrade_kernel | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/upgrade_kernel b/upgrade_kernel new file mode 100755 index 0000000..1971a88 --- /dev/null +++ b/upgrade_kernel @@ -0,0 +1,21 @@ +#!/bin/sh + +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 +make +sudo make modules_install +sudo cp -v arch/x86/boot/bzImage /boot/kernel +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/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/var/kernelbuild/linux-* +echo "=================" +cd /lib/modules/ +pwd +ls -lah + |