aboutsummaryrefslogtreecommitdiffstats
path: root/meta/packages/initscripts/initscripts-1.0/rmnologin.sh
blob: 417efc24560cf0918149b64cf6c7177b8c682653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
### BEGIN INIT INFO
# Provides:          rmnologin
# Required-Start:    $remote_fs $all
# Required-Stop: 
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Remove /etc/nologin at boot
# Description:       This script removes the /etc/nologin file as the
#                    last step in the boot process, if DELAYLOGIN=yes.
#                    If DELAYLOGIN=no, /etc/nologin was not created by
#                    bootmisc earlier in the boot process.
### END INIT INFO

if test -f /etc/nologin.boot
then
	rm -f /etc/nologin /etc/nologin.boot
fi

: exit 0
-build-env builddir' # # This works in most shells (not dash), but not all of them pass arg1 when # being sourced. To workaround the shell limitation use "set arg1" prior # to sourcing this script. # if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./oe-init-build-env" ]; then echo "Error: This script needs to be sourced. Please run as '. ./oe-init-build-env'" else if [ -n "$BASH_SOURCE" ]; then OEROOT="`dirname $BASH_SOURCE`" else OEROOT="`pwd`" fi OEROOT=`readlink -f "$OEROOT"` export OEROOT . $OEROOT/scripts/oe-buildenv-internal $OEROOT/scripts/oe-setup-builddir unset OEROOT unset BBPATH [ -n "$BUILDDIR" ] && cd $BUILDDIR fi