From 2a3db303471e7c0674a8a11207a78e5a825a955b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 17 May 2016 09:01:57 +0200 Subject: Initial commit --- download-missing-kernel-keys | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 download-missing-kernel-keys diff --git a/download-missing-kernel-keys b/download-missing-kernel-keys new file mode 100755 index 0000000..209a754 --- /dev/null +++ b/download-missing-kernel-keys @@ -0,0 +1,15 @@ +#!/bin/bash + +signatures="$( \ + curl 'https://kernel.org/' 2>/dev/null | \ + tr '"' '\n' | \ + grep '\.sign$' | \ + head -n1 +)" + +for s in ${signatures} +do + curl "$s" 2> /dev/null | \ + gpg --verify - "$0" + +done -- cgit v1.2.3-70-g09d2