]> git.pld-linux.org Git - projects/rc-scripts.git/blame - rc.d/init.d/allowlogin
- added setting for vi ;)
[projects/rc-scripts.git] / rc.d / init.d / allowlogin
CommitLineData
62c4265e
AM
1#!/bin/sh
2#
3# allowlogin Allow users to login
4#
62c4265e
AM
5# description: Allow users to login.
6#
d893fe33 7# $Id: allowlogin,v 1.9 2000/11/16 16:01:18 baggins Exp $
38198f50
AM
8
9# NLS
10NLS_DOMAIN="rc-scripts"
62c4265e
AM
11
12# Source function library.
13. /etc/rc.d/init.d/functions
14
15[ ! -f /etc/sysconfig/system ] && exit 0
16
17. /etc/sysconfig/system
18
19# See how we were called.
20case "$1" in
21 start)
dd4a755f 22 if is_yes "$DELAY_LOGIN" && [ -f /etc/nologin.boot ]; then
3d270460 23 run_cmd "Allowing users to login" rm -f /etc/nologin /etc/nologin.boot
62c4265e
AM
24 fi
25 ;;
26 stop)
27 # /etc/nologin when shutting down system
dd4a755f 28 if is_yes "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
75884bc1 29 nls "System shutdown in progress \n" > /etc/nologin
62c4265e
AM
30 chmod 644 /etc/nologin
31 cp -fp /etc/nologin /etc/nologin.boot
32 fi
33 ;;
34 *)
35 echo "Usage: $0 {start|stop}"
36 exit 1
37esac
38
39exit 0
d893fe33
JR
40
41# This must be last line !
42# vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.050429 seconds and 4 git commands to generate.