summaryrefslogtreecommitdiffstats
path: root/src/image/script.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-12 11:06:59 +0100
committerMichael Brown2007-01-12 11:06:59 +0100
commita6afbe762c1c8fb1abfc0e540ce80dd142aeee49 (patch)
treeb301c38f46276db39d72d66ec2d83740015fdcae /src/image/script.c
parentAdd "dhcp" command (diff)
downloadipxe-a6afbe762c1c8fb1abfc0e540ce80dd142aeee49.tar.gz
ipxe-a6afbe762c1c8fb1abfc0e540ce80dd142aeee49.tar.xz
ipxe-a6afbe762c1c8fb1abfc0e540ce80dd142aeee49.zip
Make DEBUG=script echo the commands as they are executed
Diffstat (limited to 'src/image/script.c')
-rw-r--r--src/image/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/image/script.c b/src/image/script.c
index 0504e4d0..84432435 100644
--- a/src/image/script.c
+++ b/src/image/script.c
@@ -65,6 +65,7 @@ static int script_exec ( struct image *image ) {
/* Mark end of line and execute command */
*eol = '\0';
+ DBG ( "$ %s\n", cmdbuf );
if ( ( rc = system ( cmdbuf ) ) != 0 ) {
DBG ( "Command \"%s\" exited with status %d\n",
cmdbuf, rc );