Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-hooks / 41-disable-ssh-agent
blob6000a5d7d910cc28c9e0be8044bd4c80890c7436
1 #!/bin/sh
3 set -e
5 # Disable ssh-agent in /etc/X11/Xsession.options
6 # (seahorse / gnome-keyring are more user-friendly)
8 echo "Disabling ssh-agent"
10 OPTS_FILE='/etc/X11/Xsession.options'
12 [ -f "${OPTS_FILE}" ] || exit 11
14 sed -i'' 's,^use-ssh-agent,#use-ssh-agent,' "${OPTS_FILE}"