Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ If called without arguments, installs stable kernel using /opt/linux
--nproc |-n set the number of processing units to use
--enable-debug-info |-edi enable debug info
--lowlatency |-low convert generic config to lowlatency
--changelog |-cl view changelog for kernel version
--uninstall |-u uninstall kernel
```

Expand Down
9 changes: 9 additions & 0 deletions kernel_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ versionToInt() {
echo "$@" | awk -F "." '{ printf("%03d%03d%03d", $1,$2,$3); }';
}

changelog() {
curl -s https://cdn.kernel.org/pub/linux/kernel/v"$(echo "$LINUX_VER" | cut -c1)".x/ChangeLog-${LINUX_VER} | less
}

# BANNERS
header_logo() {
#header
Expand Down Expand Up @@ -235,6 +239,7 @@ usage() {
printf "%s\\n" " ${YELLOW}--nproc |-n${NORMAL} set the number of processing units to use"
printf "%s\\n" " ${YELLOW}--enable-debug-info |-edi${NORMAL} enable debug info"
printf "%s\\n" " ${YELLOW}--lowlatency |-low${NORMAL} convert generic config to lowlatency"
printf "%s\\n" " ${YELLOW}--changelog |-cl${NORMAL} view changelog for kernel version"
printf "%s\\n" " ${YELLOW}--uninstall |-u${NORMAL} uninstall kernel"
echo
printf "%s\\n" " Installed kernel version: ${YELLOW}${CURRENT_VER}${NORMAL} | Script version: ${CYAN}${VERSION}${NORMAL}"
Expand Down Expand Up @@ -305,6 +310,10 @@ while [[ $# -gt 0 ]]; do
shift
LOWLATENCY=1
;;
--changelog | -cl)
changelog
exit 0
;;
--uninstall | -u)
shift
mode="uninstall"
Expand Down