From 5884c94b1f92c00406d137c9f308c098e5268a59 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Tue, 13 Jul 2021 19:47:04 +0200 Subject: Initial commit --- .../sysvinit/files/sysvinit-2.99-force-poweroff.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sys-apps/sysvinit/files/sysvinit-2.99-force-poweroff.patch (limited to 'sys-apps/sysvinit/files/sysvinit-2.99-force-poweroff.patch') diff --git a/sys-apps/sysvinit/files/sysvinit-2.99-force-poweroff.patch b/sys-apps/sysvinit/files/sysvinit-2.99-force-poweroff.patch new file mode 100644 index 0000000..d9dc0ef --- /dev/null +++ b/sys-apps/sysvinit/files/sysvinit-2.99-force-poweroff.patch @@ -0,0 +1,16 @@ +diff -Naur sysvinit-2.99/src/halt.c sysvinit-2.99-mod/src/halt.c +--- sysvinit-2.99/src/halt.c 2021-02-21 19:02:25.000000000 +0100 ++++ sysvinit-2.99-mod/src/halt.c 2021-06-26 17:00:41.577268981 +0200 +@@ -209,6 +209,12 @@ + if (!strcmp(progname, "reboot")) do_reboot = 1; + if (!strcmp(progname, "poweroff")) do_poweroff = 1; + ++ /* The unmatched doen't reboot, so force poweroff */ ++ if (do_reboot) { ++ do_reboot = 0; ++ do_poweroff = 1; ++ } ++ + /* + * Get flags + */ -- cgit v1.2.3