summaryrefslogtreecommitdiff
path: root/boot/boot_script.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-23 05:54:10 +0000
committerRoland McGrath <roland@gnu.org>1995-09-23 05:54:10 +0000
commitd7a263f65eba5ac28c98f42f66f9b6e1c88c448a (patch)
treefcf4720d51692037c09e77055d3a9e003f297acc /boot/boot_script.c
parentcd2a2678dec84bd9acea1abcbf637517f37cb51f (diff)
(boot_script_parse_line): Ignore line beginning with #.
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)