]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/bash/dot_bashrc
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
[people/teissler/ipfire-2.x.git] / config / bash / dot_bashrc
index 6e6d1e1f17fedc3ab4f161dedb12a97b16c7c9e6..90b96b43261849239fbb0ec3b92d02d62493b7e0 100644 (file)
@@ -10,3 +10,9 @@ alias mv='mv -i'
 if [ -f /etc/bashrc ]; then
        . /etc/bashrc
 fi
+
+# Automatically logout only console users after 10 minutes.
+export TMOUT=0
+if [ -z "${SSH_TTY}" ] && [ -z "${STY}" ]; then
+       export TMOUT=600
+fi