source: projects/initscripts/tags/initscripts-8.91.3/rc.d/init.d/single @ 1108

Revision 1108, 647 bytes checked in by daisuke, 14 years ago (diff)

import initscripts-8.90.6 from internal cvs repository

Line 
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
15if [ "$1" != "start" ]; then
16   exit 0
17fi
18
19# this looks nicer
20[ -x /usr/bin/clear ] && /usr/bin/clear
21
22# Now go to the single user level.
23echo $"Telling INIT to go to single user mode."
24exec init -t1 S
Note: See TracBrowser for help on using the repository browser.