From 429ca212130fe573f3b82262e9623442c94df105 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 23 Dec 2015 13:27:09 +0100 Subject: upgrade_kernel: fix when run as non-root user --- upgrade_kernel | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'upgrade_kernel') 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 -- cgit v1.2.3