summaryrefslogtreecommitdiffstats
path: root/scripts/firstrun
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/firstrun')
-rw-r--r--scripts/firstrun/70-elinks10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/firstrun/70-elinks b/scripts/firstrun/70-elinks
new file mode 100644
index 0000000..5cd34bd
--- /dev/null
+++ b/scripts/firstrun/70-elinks
@@ -0,0 +1,10 @@
+# see ../certs/cert-import
+mkdir ~/.elinks 2>/dev/null
+elinks -config-dump | sed -e "s|^\([ \t]\+\)\(set[ \t]\+"\
+"connection.ssl.cert_verify[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\
+"1|" -e "s|^\([ \t]\+\)\(set[ \t]\+"\
+"connection.ssl.trusted_ca_file[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\
+"\"${HOME}/.pki/tls/certs/ca-bundle.crt\"|" -e "s|^\([ \t]\+\)\(set[ \t]\+"\
+"config.saving_style[ \t]\+=[ \t]\+\)\(.*\)|\1#\2\3\n\1\2"\
+"3|" \
+> ~/.elinks/elinks.conf