Skip to content

Commit

Permalink
[baseimage]: enable auto logout for console (ttyS*) sessions (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored Feb 20, 2018
1 parent 843dcd5 commit f657df7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/image_config/bash/bash.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f657df7

Please sign in to comment.