summarylogtreecommitdiffstats
path: root/boot-kernel-list
diff options
context:
space:
mode:
authorsimona2020-11-01 15:58:59 +0100
committersimona2020-11-01 15:58:59 +0100
commit1be2fa189211816f275805d83d8d6a73e72ac52a (patch)
treedd924832311c1345d7788d3644241ae85b9a52d9 /boot-kernel-list
downloadaur-simonas-scripts.tar.gz
start
Diffstat (limited to 'boot-kernel-list')
-rwxr-xr-xboot-kernel-list13
1 files changed, 13 insertions, 0 deletions
diff --git a/boot-kernel-list b/boot-kernel-list
new file mode 100755
index 000000000000..a86fdb7d6807
--- /dev/null
+++ b/boot-kernel-list
@@ -0,0 +1,13 @@
+#!/bin/bash
+# Simona Pisano - 2018-11-18 -
+# simona-scripts
+# Libertamente utilizzabile sotto GPL v3
+
+ #alias sget-kernel-list='
+ search=`uname -r`; printf "Kernels /boot :\n";
+ for file in /boot/vmlinuz* ; do
+ info=`file $file`; file="${file:6:99}"; ver=${info#*version}; ver=${ver%\(*}; [[ $ver =~ $search ]] && flag="<-used" || flag="";
+ printf "%-28s %s %24s %s\n" "$file" "->" "$ver" "$flag";
+ done;
+ #'
+