5
3
# This script is run as root after the user logs in. If this script exits with
6
4
# a return code other than 0, the user's session will not be started.
10
6
if [ -e /etc/nologin ]; then
11
7
# always display the nologin message, if possible
12
8
if [ -s /etc/nologin ] && which xmessage > /dev/null 2>&1; then
13
9
xmessage -file /etc/nologin -geometry 640x480
16
12
! grep -qs '^ignore-nologin' /etc/X11/xdm/xdm.options; then