summaryrefslogtreecommitdiff
path: root/sysutils/busybox/files/patch-init_reboot.h
diff options
context:
space:
mode:
authorOleksii Samorukov <samm@FreeBSD.org>2023-07-17 00:31:13 +0200
committerOleksii Samorukov <samm@FreeBSD.org>2023-07-17 00:31:13 +0200
commitfc96e77b56c65223193406b3dedb0d0642f123c8 (patch)
tree5d97cf787f11edfe631e6aa298d505c64cd1e4bf /sysutils/busybox/files/patch-init_reboot.h
parentbiology/locarna: New port: LocARNA provides several tools for the structural ... (diff)
sysutils/busybox: fix reboot/halt/poweroff commands
Diffstat (limited to 'sysutils/busybox/files/patch-init_reboot.h')
-rw-r--r--sysutils/busybox/files/patch-init_reboot.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/busybox/files/patch-init_reboot.h b/sysutils/busybox/files/patch-init_reboot.h
new file mode 100644
index 000000000000..5ba00d98b155
--- /dev/null
+++ b/sysutils/busybox/files/patch-init_reboot.h
@@ -0,0 +1,12 @@
+--- init/reboot.h.orig 2023-07-16 21:31:29 UTC
++++ init/reboot.h
+@@ -12,6 +12,9 @@
+ # define RB_DISABLE_CAD 0
+ # define RB_POWER_OFF 0x4321fedc
+ # define RB_AUTOBOOT 0x01234567
++# elif defined(__FreeBSD__)
++# define RB_HALT_SYSTEM RB_HALT
++# define RB_POWER_OFF RB_POWEROFF
+ # elif defined(RB_HALT)
+ # define RB_HALT_SYSTEM RB_HALT
+ # endif