1#!/bin/sh 2# 3# SPDX-License-Identifier: GPL-2.0-only 4# 5 6### BEGIN INIT INFO 7# Provides: rmnologin 8# Required-Start: $remote_fs $all 9# Required-Stop: 10# Default-Start: 2 3 4 5 11# Default-Stop: 12# Short-Description: Remove /etc/nologin at boot 13# Description: This script removes the /etc/nologin file as the 14# last step in the boot process, if DELAYLOGIN=yes. 15# If DELAYLOGIN=no, /etc/nologin was not created by 16# bootmisc earlier in the boot process. 17### END INIT INFO 18 19if test -f /etc/nologin.boot 20then 21 rm -f /etc/nologin /etc/nologin.boot 22fi 23 24: exit 0 25