summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-07-12 08:28:07 +0000
committerLaurent Bercot <ska@appnovation.com>2024-07-12 08:28:07 +0000
commitaf9c36d379c9c71c4111cc15545f0938cca8e68e (patch)
treebe416fb61a45c992591b91aee6dd2c3887e77340 /src/init
parent8e8f486cdc5b4c3a1b6f91653ff38970c39256c6 (diff)
downloads6-linux-init-af9c36d379c9c71c4111cc15545f0938cca8e68e.tar.xz
Use eltest instead of testHEADmaster
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/init')
-rw-r--r--src/init/s6-linux-init-maker.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c
index 584b0b7..aed2793 100644
--- a/src/init/s6-linux-init-maker.c
+++ b/src/init/s6-linux-init-maker.c
@@ -130,11 +130,13 @@ static int container_exit_script (buffer *b, char const *data)
EXECLINE_EXTBINPREFIX "fdclose 1\n"
EXECLINE_EXTBINPREFIX "fdclose 2\n"
EXECLINE_EXTBINPREFIX "wait { }\n"
- EXECLINE_EXTBINPREFIX "ifelse -X { test $HALTCODE = r } { "
+ EXECLINE_EXTBINPREFIX "ifelse -X { "
+ EXECLINE_EXTBINPREFIX "eltest $HALTCODE = r } { "
S6_LINUX_INIT_EXTBINPREFIX "s6-linux-init-hpr -fr") < 0
|| (!innssync && buffer_puts(b, "n") < 0)
|| buffer_puts(b, " }\n"
- EXECLINE_EXTBINPREFIX "ifelse -X { test $HALTCODE = p } { "
+ EXECLINE_EXTBINPREFIX "ifelse -X { "
+ EXECLINE_EXTBINPREFIX "eltest $HALTCODE = p } { "
S6_LINUX_INIT_EXTBINPREFIX "s6-linux-init-hpr -fp") < 0
|| (!innssync && buffer_puts(b, "n") < 0)
|| buffer_puts(b, " }\n"