From 5869505d64c04c536bdcd71a197ade918c36bf1c Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 10 Aug 2014 11:19:38 +0100 Subject: init --- upgrade-kernel | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 upgrade-kernel (limited to 'upgrade-kernel') diff --git a/upgrade-kernel b/upgrade-kernel new file mode 100755 index 0000000..d0ecb19 --- /dev/null +++ b/upgrade-kernel @@ -0,0 +1,25 @@ +#!/bin/sh + +# +# NOTE: call from kernel source dir +# + + +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/stuff/kernelbuild/linux-$V KBUILD=/home/pks/stuff/kernelbuild/linux-$V +sudo make clean +sudo chown -R pks:pks * .* /home/pks/src/tp_smapi/ /home/pks/stuff/kernelbuild/linux-* +echo "=================" +cd /lib/modules/ +pwd +ls -lah + -- cgit v1.2.3