| Revision 1108,
647 bytes
checked in by daisuke, 16 years ago
(diff) |
|
import initscripts-8.90.6 from internal cvs repository
|
| Rev | Line | |
|---|
| [1108] | 1 | #!/bin/bash |
|---|
| 2 | # |
|---|
| 3 | # |
|---|
| 4 | # rc.single This file is executed by init when it goes into runlevel |
|---|
| 5 | # 1, which is the administrative state. It kills all |
|---|
| 6 | # deamons and then puts the system into single user mode. |
|---|
| 7 | # Note that the file systems are kept mounted. |
|---|
| 8 | # |
|---|
| 9 | # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> |
|---|
| 10 | # Modified for RHS Linux by Damien Neil |
|---|
| 11 | # |
|---|
| 12 | |
|---|
| 13 | . /etc/init.d/functions |
|---|
| 14 | |
|---|
| 15 | if [ "$1" != "start" ]; then |
|---|
| 16 | exit 0 |
|---|
| 17 | fi |
|---|
| 18 | |
|---|
| 19 | # this looks nicer |
|---|
| 20 | [ -x /usr/bin/clear ] && /usr/bin/clear |
|---|
| 21 | |
|---|
| 22 | # Now go to the single user level. |
|---|
| 23 | echo $"Telling INIT to go to single user mode." |
|---|
| 24 | exec init -t1 S |
|---|
Note: See
TracBrowser
for help on using the repository browser.