summaryrefslogtreecommitdiffstats
path: root/root/linux/upgrade.sh
diff options
context:
space:
mode:
Diffstat (limited to 'root/linux/upgrade.sh')
-rwxr-xr-xroot/linux/upgrade.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/root/linux/upgrade.sh b/root/linux/upgrade.sh
new file mode 100755
index 0000000..37408ec
--- /dev/null
+++ b/root/linux/upgrade.sh
@@ -0,0 +1,16 @@
+#!/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
+cp $d/config .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