| 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, <[email protected]> |
| 10 |
# Modified for RHS Linux by Damien Neil |
| 11 |
# |
| 12 |
# This file was modified by Steven Shiau <steven _at_ clonezilla org> to be used for DRBL (Clonezilla SE) on Nov/23/2009. |
| 13 |
|
| 14 |
|
| 15 |
. /etc/init.d/functions |
| 16 |
|
| 17 |
if [ "$1" != "start" ]; then |
| 18 |
exit 0 |
| 19 |
fi |
| 20 |
|
| 21 |
# this looks nicer |
| 22 |
# [ -x /usr/bin/clear ] && /usr/bin/clear # Commented by DRBL so that we can see the error messages of Clonezilla if necessary |
| 23 |
|
| 24 |
# Now go to the single user level. |
| 25 |
echo $"Telling INIT to go to single user mode." |
| 26 |
exec init -t1 S |