blob: d9dc0ef8586f2c7011c81444eb8878eadb05a38c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
*/
|