summaryrefslogtreecommitdiff
path: root/boot/boot_script.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/boot_script.c')
-rw-r--r--boot/boot_script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/boot/boot_script.c b/boot/boot_script.c
index 64548d4f..a94b90d2 100644
--- a/boot/boot_script.c
+++ b/boot/boot_script.c
@@ -269,6 +269,9 @@ boot_script_parse_line (char *cmdline)
/* Extract command name. Ignore line if it lacks a command. */
for (p = cmdline; *p == ' ' || *p == '\t'; p++)
;
+ if (*p == '#')
+ /* Ignore comment line. */
+ return 0;
for (q = p; *q && *q != ' ' && *q != '\t' && *q != '\n'; q++)
;
if (p == q)