From 6bf3676906b3c32d059d6a6745776c91e9b6c6bf Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 17 Jun 2015 18:56:08 +0000 Subject: Fix finish script --- src/init/s6-linux-init-maker.c | 5 +---- 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.3