mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Only write the rc.conf header when a new rc.conf is written. This was
accidentally removed in v. 1.211. Submitted by: Olafur Osvaldsson <oli@isnic.is> PR: bin/73692 MFC after: 1 week Approved by: trhodes
This commit is contained in:
parent
1b42d69b50
commit
a98d8c790a
2 changed files with 2 additions and 2 deletions
|
|
@ -428,7 +428,7 @@ configRC_conf(void)
|
|||
fprintf(rcSite, "#REMOVED: %s", line);
|
||||
}
|
||||
fclose(rcOld);
|
||||
} else {
|
||||
} else if (write_header) {
|
||||
fprintf(rcSite, "# This file now contains just the overrides from /etc/defaults/rc.conf.\n");
|
||||
fprintf(rcSite, "# Please make all changes to this file, not to /etc/defaults/rc.conf.\n\n");
|
||||
fprintf(rcSite, "# Enable network daemons for user convenience.\n");
|
||||
|
|
|
|||
|
|
@ -428,7 +428,7 @@ configRC_conf(void)
|
|||
fprintf(rcSite, "#REMOVED: %s", line);
|
||||
}
|
||||
fclose(rcOld);
|
||||
} else {
|
||||
} else if (write_header) {
|
||||
fprintf(rcSite, "# This file now contains just the overrides from /etc/defaults/rc.conf.\n");
|
||||
fprintf(rcSite, "# Please make all changes to this file, not to /etc/defaults/rc.conf.\n\n");
|
||||
fprintf(rcSite, "# Enable network daemons for user convenience.\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue