opnsense-ports/sysutils/runit-faster/files/patch-src_runit.c
Franco Fichtner 538c22e7c3 */*: sync with upstream
Taken from: HardenedBSD
2018-03-09 03:40:20 +01:00

15 lines
397 B
C

--- src/runit.c.orig 2018-03-06 14:39:19 UTC
+++ src/runit.c
@@ -309,10 +309,10 @@ int main (int argc, const char * const *argv, char * c
reboot_system(RB_AUTOBOOT);
}
else {
-#ifdef RB_POWER_OFF
+#ifdef RB_POWEROFF
strerr_warn2(INFO, "power off...", 0);
sync();
- reboot_system(RB_POWER_OFF);
+ reboot_system(RB_POWEROFF);
sleep(2);
#endif
#ifdef RB_HALT_SYSTEM