#! /bin/sh
#
# rmnologin	This script removes the /etc/nologin file as the last
#		step in the boot process.
#
# Version:	@(#)rmnologin  2.85-5  21-Jul-2003  miquels@cistron.nl
#

. /etc/default/rcS

if [ "$DELAYLOGIN" = yes ] && [ -f /etc/nologin ]
then
	#
	#	If /etc/nologin is a symbolic link,
	#	remove the destination instead of the link.
	#
	cd /etc
	if [ -L nologin ]
	then
		rm -f `readlink nologin`
	else
		rm -f nologin
	fi
fi

: exit 0
