From d7a263f65eba5ac28c98f42f66f9b6e1c88c448a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 23 Sep 1995 05:54:10 +0000 Subject: (boot_script_parse_line): Ignore line beginning with #. --- boot/boot_script.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3