From 0678519d74f5a65a2286f453b102d6561b2840de Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 6 May 2020 10:30:47 +0300 Subject: smol script to list kernel version changelog in terminal --- dotfiles/.local/bin/kernelchlog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dotfiles/.local/bin/kernelchlog (limited to 'dotfiles/.local/bin') diff --git a/dotfiles/.local/bin/kernelchlog b/dotfiles/.local/bin/kernelchlog new file mode 100755 index 0000000..05c5da5 --- /dev/null +++ b/dotfiles/.local/bin/kernelchlog @@ -0,0 +1,16 @@ +#!/bin/sh + +# Very simple script to display the changelog for a kernel version in the +# terminal. +# If no arguments are passed, the changelog for the currently loaded kernel is +# displayed. + +version=$1 + +if [ -z $1 ]; then + version=$(uname -r | awk -F '-' '{ print $1 }') +fi + +major=$(echo $version | awk -F '.' '{ print $1 }') + +curl "https://cdn.kernel.org/pub/linux/kernel/v$major.x/ChangeLog-$version" | less -- cgit v1.2.3