summaryrefslogtreecommitdiff
path: root/upgrade_kernel
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-12-23 13:27:09 +0100
committerPatrick Simianer <p@simianer.de>2015-12-23 13:27:09 +0100
commit429ca212130fe573f3b82262e9623442c94df105 (patch)
treef98218500a0f7325d8be7e49a8ee98fe5fe82e79 /upgrade_kernel
parent5a3ec30ae33b2ec86e25ff7ea772522c9ac2bff3 (diff)
upgrade_kernel: fix when run as non-root user
Diffstat (limited to 'upgrade_kernel')
-rwxr-xr-xupgrade_kernel3
1 files changed, 2 insertions, 1 deletions
diff --git a/upgrade_kernel b/upgrade_kernel
index 123cf66..ac46050 100755
--- a/upgrade_kernel
+++ b/upgrade_kernel
@@ -7,7 +7,8 @@ cp -v ../config .config
make
sudo make modules_install
sudo cp -v arch/x86/boot/bzImage /boot/kernel
-sudo md5sum /boot/kernel > /boot/kernel.md5
+sudo md5sum /boot/kernel > /tmp/kernel.md5
+sudo mv /tmp/kernel.md5 /boot/kernel.md5
sudo /sbin/lilo
sudo rm /usr/src/linux
sudo ln -s $(pwd) /usr/src/linux