1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
This patch makes shutdown use the Single User runlevel by default so
the gettys are shutdown too.
Roy Marples <uberlord@gentoo.org>
diff -ur sysvinit-2.86.orig/man/shutdown.8 sysvinit-2.86/man/shutdown.8
--- sysvinit-2.86.orig/man/shutdown.8 2006-12-21 10:16:37.000000000 +0000
+++ sysvinit-2.86/man/shutdown.8 2006-12-21 10:19:51.000000000 +0000
@@ -27,7 +27,7 @@
\fBshutdown\fP does its job by signalling the \fBinit\fP process,
asking it to change the runlevel.
Runlevel \fB0\fP is used to halt the system, runlevel \fB6\fP is used
-to reboot the system, and runlevel \fB1\fP is used to put to system into
+to reboot the system, and runlevel \fBS\fP is used to put to system into
a state where administrative tasks can be performed; this is the default
if neither the \fI-h\fP or \fI-r\fP flag is given to \fBshutdown\fP.
To see which actions are taken on halt or reboot see the appropriate
diff -ur sysvinit-2.86.orig/src/shutdown.c sysvinit-2.86/src/shutdown.c
--- sysvinit-2.86.orig/src/shutdown.c 2006-12-21 10:16:37.000000000 +0000
+++ sysvinit-2.86/src/shutdown.c 2006-12-21 10:21:03.000000000 +0000
@@ -463,7 +463,7 @@
usage();
exit(1);
}
- strcpy(down_level, "1");
+ strcpy(down_level, "S");
halttype = NULL;
/* Process the options. */
@@ -636,6 +636,8 @@
strcpy(newstate, "for reboot");
break;
case '1':
+ case 'S':
+ case 's':
strcpy(newstate, "to maintenance mode");
break;
default:
|