summaryrefslogtreecommitdiff
path: root/upgrade-kernel
blob: 1971a882377876f8cdb520a5bb97fe22b46985b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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