From f657df7588315e06c982b55d4a0680a9a740b9a4 Mon Sep 17 00:00:00 2001 From: lguohan Date: Tue, 20 Feb 2018 09:36:54 -0800 Subject: [PATCH] [baseimage]: enable auto logout for console (ttyS*) sessions (#1398) --- files/image_config/bash/bash.bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/image_config/bash/bash.bashrc b/files/image_config/bash/bash.bashrc index f59cc1bf6470..d65beb5b0847 100644 --- a/files/image_config/bash/bash.bashrc +++ b/files/image_config/bash/bash.bashrc @@ -53,3 +53,6 @@ if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-no fi } fi + +# enable auto-logout for console ttyS* sessions +tty | grep ttyS >/dev/null && TMOUT=300