diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-10-15 20:56:41 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-10-15 20:56:41 -0400 |
| commit | eefbd029b55b2782b0d7b11b4989ce0ca9b256cd (patch) | |
| tree | 535511fd3154342117d67171e28a312bd30c7f87 /kernel_upgrade.sh | |
| parent | 5840f413825e053b645a338d71c1916a06094335 (diff) | |
| download | dotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.gz dotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.xz | |
Massive organization of my dotfiles
Diffstat (limited to 'kernel_upgrade.sh')
| -rwxr-xr-x | kernel_upgrade.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/kernel_upgrade.sh b/kernel_upgrade.sh deleted file mode 100755 index dab1518..0000000 --- a/kernel_upgrade.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -set -e -set -x -version="$(sed 11q Makefile \ - | sed -n \ - -e's/^VERSION = //p' \ - -e's/^PATCHLEVEL = //p' \ - -e's/^SUBLEVEL = //p' \ - | tr '\n' '.' \ - | sed -e's/\.$//')" -localversion="$(sed 25q .config \ - | sed -rn \ - -e's/^CONFIG_LOCALVERSION="(.*)"$/\1/p')" -if [ -z "$version" ] ; then - exit 1; -fi -CPUs="$(nproc)" -# git checkout v$version -make -j$CPUs "$@" olddefconfig bzImage modules -sudo make -j$CPUs install modules_install -cd / -sudo sh -c 'umask 002; sh /etc/kernel.d/post-install/10-dkms linux '"${version}${localversion}" -cd - -sudo dracut -f --kver "${version}${localversion}" -sudo grub-mkconfig -o /boot/grub/grub.cfg -echo "You'll have to update grub by hand there bud" |
