openrc/init.d/rmnologin

18 lines
345 B
Plaintext
Raw Normal View History

#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Removes a file which blocks logins until this service has run."
depend() {
need localmount
}
start() {
if [ -f /etc/nologin.boot ] ; then
rm -f /etc/nologin /etc/nologin.boot
fi
}
# vim: set ts=4 :