From 02fc1306b04f44ec3a3d405cf10e0364d44838e4 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Wed, 19 Jun 2019 00:16:01 -0700 Subject: [PATCH] [baseimage]: Increase TMOUT for serial port connections to 15 minutes (#3032) Increase TMOUT value in order to close inactive serial console connections after 900 seconds (15 minutes) of inactivity --- files/image_config/bash/bash.bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/image_config/bash/bash.bashrc b/files/image_config/bash/bash.bashrc index d65beb5b08..6651a51cee 100644 --- a/files/image_config/bash/bash.bashrc +++ b/files/image_config/bash/bash.bashrc @@ -54,5 +54,5 @@ if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-no } fi -# enable auto-logout for console ttyS* sessions -tty | grep ttyS >/dev/null && TMOUT=300 +# Automatically log out console ttyS* sessions after 15 minutes of inactivity +tty | grep ttyS >/dev/null && TMOUT=900