From 4ca9990db8765aebab80a6ef882cab3331db4828 Mon Sep 17 00:00:00 2001 From: Grzegorz Daniluk <grzegorz.daniluk@gmail.com> Date: Fri, 20 Jul 2012 17:01:13 +0200 Subject: [PATCH] init: shell_exec wants command without \n at the end --- shell/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/shell.c b/shell/shell.c index 3cd9749..c2c2731 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -286,9 +286,9 @@ int shell_boot_script(void) if(next==0) mprintf("Empty init script...\n"); break; } - cmd_buf[cmd_len] = 0; + cmd_buf[cmd_len-1] = 0; - mprintf("executing: %s", cmd_buf); + mprintf("executing: %s\n", cmd_buf); _shell_exec(); next = 1; } -- GitLab