blob: ca7ac90cc71fe1f6084849769f3e3801a8be7098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|