summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/41-disable-ssh-agent
blob: 6000a5d7d910cc28c9e0be8044bd4c80890c7436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

# Disable ssh-agent in /etc/X11/Xsession.options
# (seahorse / gnome-keyring are more user-friendly)

echo "Disabling ssh-agent"

OPTS_FILE='/etc/X11/Xsession.options'

[ -f "${OPTS_FILE}" ] || exit 11

sed -i'' 's,^use-ssh-agent,#use-ssh-agent,' "${OPTS_FILE}"