From a2e3cd4491b11fc68645c9a8a014db602f680440 Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Thu, 15 Aug 2013 15:54:16 +0200 Subject: Firstrun scripts: add autoconfig for elinks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - make sure SSL peer certificate verification is on - use custom CA bundle for that - set config.saving_style so that no banner is displayed when running elinks for the first time Signed-off-by: Jan Pokorný --- scripts/firstrun/70-elinks | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/firstrun/70-elinks (limited to 'scripts/firstrun') 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 -- cgit