summaryrefslogtreecommitdiffstats
path: root/root/linux/upgrade.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xroot/linux/upgrade.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/root/linux/upgrade.sh b/root/linux/upgrade.sh
new file mode 100755
index 0000000..883d0d3
--- /dev/null
+++ b/root/linux/upgrade.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -xe
+d=`pwd`
+k=`eselect kernel list | tail -n1 | cut -d\ -f6`
+eselect kernel set $k
+cd /usr/src/linux
+patch -p1 < $d/i8042-x86ia64io.h.patch
+l=0
+for f in $d/linux.config.*
+do
+ n=`cut -d. -f3 <<<$f`
+ [ $n -gt $l ] && l=$n
+done
+cp $d/linux.config.$l.* .config
+make
+make modules
+make install
+make modules_install
+m=`cut -d- -f2- <<<$k`
+dracut $m
+mv $m /boot/initramfs-$m.img
+grub-mkconfig > /boot/grub/grub.cfg