diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-23 13:27:09 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-23 13:27:09 +0100 |
commit | 429ca212130fe573f3b82262e9623442c94df105 (patch) | |
tree | f98218500a0f7325d8be7e49a8ee98fe5fe82e79 /upgrade_kernel | |
parent | 5a3ec30ae33b2ec86e25ff7ea772522c9ac2bff3 (diff) |
upgrade_kernel: fix when run as non-root user
Diffstat (limited to 'upgrade_kernel')
-rwxr-xr-x | upgrade_kernel | 3 |
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 |