summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-13 14:52:04 +0200
committerErich Eckner <git@eckner.net>2016-04-13 14:52:04 +0200
commit1f8579cfabf5610244095e2c7f9ea65007a15796 (patch)
tree48be9dd9c3e4e858de9301197acbe888dbf12451 /README
parent2b588323a8502a20dfafb4cf2717ce4f5cf9be69 (diff)
downloadarchMirrorBootStrap-1f8579cfabf5610244095e2c7f9ea65007a15796.tar.xz
nice comments
Diffstat (limited to 'README')
-rwxr-xr-xREADME51
1 files changed, 44 insertions, 7 deletions
diff --git a/README b/README
index e543ec5..a13a71c 100755
--- a/README
+++ b/README
@@ -1,9 +1,20 @@
#!/bin/bash
-# to be run as root ...
+
+####################################
+# #
+# to be run as root ... #
+# or executed step by step as root #
+# #
+####################################
set -e
-# check and possibly install root-certificate
+##########################################################
+# #
+# check and possibly install root-certificate of jeti100 #
+# #
+##########################################################
+
if ! curl -o /dev/null "https://jeti100.ioq.uni-jena.de/" 2> /dev/null
then
cert="$(curl -o - "http://jeti100.ioq.uni-jena.de/statisch/ca.crt" 2> /dev/null)"
@@ -18,16 +29,37 @@ then
trust export-compat
fi
-# import keys:
+
+################
+# #
+# import keys: #
+# #
+################
+
pacman-key --add <(curl -o - "https://arch.eckner.net/archlinuxewe/masterkeys.gpg")
-# locally sign package-key
+############################
+# #
+# locally sign package-key #
+# #
+############################
+
pacman-key --lsign-key 0x43BF68D3
-# locally sign repository-key
+###############################
+# #
+# locally sign repository-key #
+# #
+###############################
+
pacman-key --lsign-key 0x20194BA1
-# setup mirror in mirrorlist
+##############################
+# #
+# setup mirror in mirrorlist #
+# #
+##############################
+
if ! grep -q "^Server = https://arch\.eckner\.net" /etc/pacman.d/mirrorlist
then
ml="$(
@@ -41,7 +73,12 @@ then
/etc/pacman.d/mirrorlist
fi
-# setup repo in pacman.conf
+###################################
+# #
+# setup repository in pacman.conf #
+# #
+###################################
+
if grep -q "^\[archlinuxewe\]\$" /etc/pacman.conf
then
tmpFile=$(mktemp)