[baseimage]: enable auto logout for console (ttyS*) sessions (#1398)

This commit is contained in:
lguohan 2018-02-20 09:36:54 -08:00 committed by GitHub
parent 843dcd5eb2
commit f657df7588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,3 +53,6 @@ if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-no
fi fi
} }
fi fi
# enable auto-logout for console ttyS* sessions
tty | grep ttyS >/dev/null && TMOUT=300