summaryrefslogtreecommitdiff
path: root/src/init/s6-linux-init-maker.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-17 18:56:08 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-17 18:56:08 +0000
commit6bf3676906b3c32d059d6a6745776c91e9b6c6bf (patch)
treeb6a7d7ad65990d733f4b56db04c27d28d976956a /src/init/s6-linux-init-maker.c
parentb1f1a6d91e196a52ce5336e8e98a6889c3267c0b (diff)
downloads6-linux-init-6bf3676906b3c32d059d6a6745776c91e9b6c6bf.tar.xz
Fix finish script
Diffstat (limited to 'src/init/s6-linux-init-maker.c')
-rw-r--r--src/init/s6-linux-init-maker.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c
index 41e2b95..33197ee 100644
--- a/src/init/s6-linux-init-maker.c
+++ b/src/init/s6-linux-init-maker.c
@@ -91,10 +91,7 @@ static int finish_script (buffer *b)
unsigned int sabase = satmp.len ;
if (buffer_puts(b,
"#!" EXECLINE_EXTBINPREFIX "execlineb -S0\n\n"
- EXECLINE_EXTBINPREFIX "cd /\n"
- EXECLINE_EXTBINPREFIX "redirfd -w 2 /dev/console\n"
- EXECLINE_EXTBINPREFIX "fdmove -c 1 2\n"
- EXECLINE_EXTBINPREFIX "wait { }\n") < 0
+ "cd /\nredirfd -w 2 /dev/console\nfdmove -c 1 2\nwait { }\n") < 0
|| !string_quote(&satmp, shutdown_script, str_len(shutdown_script))) return 0 ;
if (buffer_put(b, satmp.s + sabase, satmp.len - sabase) < 0)
{