]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Make DEBUG=script echo the commands as they are executed
authorMichael Brown <mcb30@etherboot.org>
Fri, 12 Jan 2007 10:06:59 +0000 (10:06 +0000)
committerMichael Brown <mcb30@etherboot.org>
Fri, 12 Jan 2007 10:06:59 +0000 (10:06 +0000)
src/image/script.c

index 0504e4d0b9f6cbae6c0c673bd6d1838f199a53d2..844324350f3f78dfc69f45cdd2b02f6033067797 100644 (file)
@@ -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 );