Provide a way to deal with rc.conf which may already be populated in certain
cases.
This commit is contained in:
parent
6e2380a7c3
commit
c18042c896
@ -422,6 +422,8 @@ configRC_conf(void)
|
||||
while(fgets(line, sizeof(line), rcOld)) {
|
||||
if(line[0] == '#' || variable_check2(line) != 0)
|
||||
fprintf(rcSite, "%s", line);
|
||||
else
|
||||
fprintf(rcSite, "#REMOVED: %s", line);
|
||||
}
|
||||
fclose(rcOld);
|
||||
} else {
|
||||
|
@ -422,6 +422,8 @@ configRC_conf(void)
|
||||
while(fgets(line, sizeof(line), rcOld)) {
|
||||
if(line[0] == '#' || variable_check2(line) != 0)
|
||||
fprintf(rcSite, "%s", line);
|
||||
else
|
||||
fprintf(rcSite, "#REMOVED: %s", line);
|
||||
}
|
||||
fclose(rcOld);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user