Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
| 15 | if test -f /etc/nologin.boot |
| 16 | then |
| 17 | rm -f /etc/nologin /etc/nologin.boot |
| 18 | fi |
| 19 | |
| 20 | : exit 0 |