1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/xfce4-session/busybox-shutdown.patch
2019-05-24 10:11:06 +00:00

18 lines
617 B
Diff

diff --git a/libxfsm/xfsm-shutdown-common.h b/libxfsm/xfsm-shutdown-common.h
index 3b9fbd0..f7e6dd4 100644
--- a/libxfsm/xfsm-shutdown-common.h
+++ b/libxfsm/xfsm-shutdown-common.h
@@ -50,9 +50,12 @@
#elif defined(sun) || defined(__sun)
#define POWEROFF_CMD "/usr/sbin/shutdown -i 5 -g 0 -y"
#define REBOOT_CMD "/usr/sbin/shutdown -i 6 -g 0 -y"
-#else
+#elif defined(__GLIBC__)
#define POWEROFF_CMD "/sbin/shutdown -h now"
#define REBOOT_CMD "/sbin/shutdown -r now"
+#else /* busybox */
+#define POWEROFF_CMD "/sbin/poweroff"
+#define REBOOT_CMD "/sbin/reboot"
#endif
#ifdef BACKEND_TYPE_FREEBSD