summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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