diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4f534df..076cc6f 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,19 @@ AS_IF([test "x$enable_softoff" != "xno"], [AC_ARG_VAR(IPMI_HOST_SHUTDOWN_COMPLETE_TIMEOUT_SECS, [Wait time until Host can quiesce])] [AC_DEFINE_UNQUOTED([IPMI_HOST_SHUTDOWN_COMPLETE_TIMEOUT_SECS], [45*60], [Wait time until Host can quiesce])] + + # Indicates an in-band power off or reboot request from the host + # This file is used to ensure the soft off service does not run for host + # initiated shutdown or reboot requests + [AC_ARG_VAR(HOST_INBAND_REQUEST_DIR, [Directory used to indicate the host has initiated a shutdown or reboot])] + AS_IF([test "x$HOST_INBAND_REQUEST_DIR" == "x"], + [HOST_INBAND_REQUEST_DIR="/run/openbmc/"]) + [AC_DEFINE_UNQUOTED([HOST_INBAND_REQUEST_DIR], ["$HOST_INBAND_REQUEST_DIR"], [Directory to store host initiated shutdown file])] + + [AC_ARG_VAR(HOST_INBAND_REQUEST_FILE, [File which indicates the host has initiated a shutdown or reboot])] + AS_IF([test "x$HOST_INBAND_REQUEST_FILE" == "x"], + [HOST_INBAND_REQUEST_FILE="host@%u-request"]) + [AC_DEFINE_UNQUOTED([HOST_INBAND_REQUEST_FILE], ["$HOST_INBAND_REQUEST_FILE"], [File to create if host has initiated shutdown or reboot])] ) # Control Host Interfaces |