summaryrefslogtreecommitdiffstats
path: root/meta/packages/initscripts/initscripts-1.0/rmnologin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/rmnologin.sh')
-rwxr-xr-xmeta/packages/initscripts/initscripts-1.0/rmnologin.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/rmnologin.sh b/meta/packages/initscripts/initscripts-1.0/rmnologin.sh
new file mode 100755
index 0000000000..417efc2456
--- /dev/null
+++ b/meta/packages/initscripts/initscripts-1.0/rmnologin.sh
@@ -0,0 +1,20 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: rmnologin
4# Required-Start: $remote_fs $all
5# Required-Stop:
6# Default-Start: 2 3 4 5
7# Default-Stop:
8# Short-Description: Remove /etc/nologin at boot
9# Description: This script removes the /etc/nologin file as the
10# last step in the boot process, if DELAYLOGIN=yes.
11# If DELAYLOGIN=no, /etc/nologin was not created by
12# bootmisc earlier in the boot process.
13### END INIT INFO
14
15if test -f /etc/nologin.boot
16then
17 rm -f /etc/nologin /etc/nologin.boot
18fi
19
20: exit 0