Add support for standard UNIX comment chars in finit.conf

finit.c:
        Skip standard UNIX comment character '#' if it appears at the
        beginning of a row in finit.conf

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2012-09-17 10:43:06 +02:00
1 parent b0aec188bc
commit 5da4f4cfc3
1 file changed
+4
+4
View File
@@ -112,6 +112,10 @@ int main(void)
_d("conf: %s", line);
/* Skip comments. */
if (MATCH_CMD(line, "#", x)) {
continue;
}
/* Do this before mounting / read-write */
if (MATCH_CMD(line, "check ", x)) {
strcpy(cmd, "/sbin/fsck -C -a ");