Add automatic TTY logout timeout

This commit is contained in:
ItsDrike 2021-04-30 02:16:50 +02:00
parent e3aa39ffc5
commit b26d4f4bad
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD

View file

@ -0,0 +1,8 @@
# Set automatic timeout for shell
# which will automatically log out the user after certain amount of time
# This will not work on termunal emulators in X11
TMOUT="$(( 60*10 ))";
[ -z "$DISPLAY" ] && export TMOUT;
case $( /usr/bin/tty ) in
/dev/tty[0-9]*) export TMOUT;;
esac