aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/kernelchlog
blob: 05c5da5aaece0bc519568628d93872f37f6c1e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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