summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-12-21 10:48:03 +0000
committerRoy Marples <uberlord@gentoo.org>2006-12-21 10:48:03 +0000
commite249c7ed40d7af334bb6ca733240bdfc3500457d (patch)
tree4f5b4af43c620357dd86d95ed32b0639c5148ef4 /sys-apps/sysvinit/files
parentVersion bump. Wiped out previuos unstable releases. (diff)
downloadgentoo-2-e249c7ed40d7af334bb6ca733240bdfc3500457d.tar.gz
gentoo-2-e249c7ed40d7af334bb6ca733240bdfc3500457d.tar.bz2
gentoo-2-e249c7ed40d7af334bb6ca733240bdfc3500457d.zip
shutdown now goes into single user mode by default, #158615.
(Portage version: 2.1.2_rc3-r9)
Diffstat (limited to 'sys-apps/sysvinit/files')
-rw-r--r--sys-apps/sysvinit/files/digest-sysvinit-2.86-r76
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch38
2 files changed, 44 insertions, 0 deletions
diff --git a/sys-apps/sysvinit/files/digest-sysvinit-2.86-r7 b/sys-apps/sysvinit/files/digest-sysvinit-2.86-r7
new file mode 100644
index 000000000000..7fc9a567296b
--- /dev/null
+++ b/sys-apps/sysvinit/files/digest-sysvinit-2.86-r7
@@ -0,0 +1,6 @@
+MD5 650af823f937d386e81520b1741d4d45 sysvinit-2.86-kexec.patch 4139
+RMD160 5f8e9ccd3a39701cf47a1a541c78a4be971d46fc sysvinit-2.86-kexec.patch 4139
+SHA256 936245ef3060939bec3099efc006009336b3672422c1de41983b277ab5ddac47 sysvinit-2.86-kexec.patch 4139
+MD5 7d5d61c026122ab791ac04c8a84db967 sysvinit-2.86.tar.gz 99009
+RMD160 46587ab51390b5c8cd3179a3690f86efdbe9b4b9 sysvinit-2.86.tar.gz 99009
+SHA256 035f98fae17d9cff002993c564ccc83dc4ed136127172caeff872b6abdb679d8 sysvinit-2.86.tar.gz 99009
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch b/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch
new file mode 100644
index 000000000000..07f434ef4167
--- /dev/null
+++ b/sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch
@@ -0,0 +1,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: