Last active
June 2, 2023 20:37
-
-
Save yuri1969/56cedfc7af86ccb07bcd394d828a400d to your computer and use it in GitHub Desktop.
Run kernel compile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /usr/src/linux || { echo 'Failed to switch to /usr/src/linux' >&2; exit 1; } | |
chrt -i 0 ionice -c 3 make -j "$(nproc)" || \ | |
{ echo 'Failed to compile the kernel' >&2; exit 1; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment