mirror of
https://github.com/troglobit/finit.git
synced 2026-11-19 19:40:50 +00:00
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:
1 parent
b0aec188bc
commit
5da4f4cfc3
1 file changed
+4
@@ -112,6 +112,10 @@ int main(void)
|
|||||||
|
|
||||||
_d("conf: %s", line);
|
_d("conf: %s", line);
|
||||||
|
|
||||||
|
/* Skip comments. */
|
||||||
|
if (MATCH_CMD(line, "#", x)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
/* Do this before mounting / read-write */
|
/* Do this before mounting / read-write */
|
||||||
if (MATCH_CMD(line, "check ", x)) {
|
if (MATCH_CMD(line, "check ", x)) {
|
||||||
strcpy(cmd, "/sbin/fsck -C -a ");
|
strcpy(cmd, "/sbin/fsck -C -a ");
|
||||||
|
|||||||
Reference in new issue
Block a user