From 29422c4d3a7a22d13f0e26c2af359f3881ca5a4a Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Fri, 5 Jul 2024 19:46:01 +0200 Subject: Add sys-apps/sysvinit-3.08 --- .../files/sysvinit-3.08-shutdown-single.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 sys-apps/sysvinit/files/sysvinit-3.08-shutdown-single.patch (limited to 'sys-apps/sysvinit/files') diff --git a/sys-apps/sysvinit/files/sysvinit-3.08-shutdown-single.patch b/sys-apps/sysvinit/files/sysvinit-3.08-shutdown-single.patch new file mode 100644 index 0000000..571f951 --- /dev/null +++ b/sys-apps/sysvinit/files/sysvinit-3.08-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 + +Forward-ported from v2.86 to v2.94_beta +Lars Wendler +--- a/man/shutdown.8 ++++ b/man/shutdown.8 +@@ -44,7 +44,7 @@ mail and news processing programs a chance to exit cleanly, etc. + \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 \fB-h\fP or \fB-r\fP flag is given to \fBshutdown\fP. + To see which actions are taken on halt or reboot see the appropriate +--- a/src/shutdown.c ++++ b/src/shutdown.c +@@ -547,7 +547,7 @@ int main(int argc, char **argv) + usage(); + exit(1); + } +- strcpy(down_level, "1"); ++ strcpy(down_level, "S"); + halttype = NULL; + memset(when, '\0', WHEN_SIZE); + +@@ -734,6 +734,8 @@ int main(int argc, char **argv) + strncpy(newstate, "for reboot", STATELEN); + break; + case '1': ++ case 'S': ++ case 's': + strncpy(newstate, "to maintenance mode", STATELEN); + break; + default: -- cgit v1.2.3