summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-17 09:01:57 +0200
committerErich Eckner <git@eckner.net>2016-05-17 09:01:57 +0200
commit2a3db303471e7c0674a8a11207a78e5a825a955b (patch)
tree44f4acd706efa3a0cfd94b3b7fbd96c8c86c86fe
downloadkernelKeys-2a3db303471e7c0674a8a11207a78e5a825a955b.tar.xz
Initial commit
-rwxr-xr-xdownload-missing-kernel-keys15
1 files changed, 15 insertions, 0 deletions
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