diff options
author | trhodes <trhodes@FreeBSD.org> | 2003-12-13 16:12:55 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2003-12-13 16:12:55 +0000 |
commit | c18042c8968e30c6d2d5f2d34edecb9acaad44eb (patch) | |
tree | cc4db117599f7c528dfa3cff4b16474efd60c0fc /usr.sbin | |
parent | 6e2380a7c32d65f61a7868e9e15806051c84eddb (diff) | |
download | FreeBSD-src-c18042c8968e30c6d2d5f2d34edecb9acaad44eb.zip FreeBSD-src-c18042c8968e30c6d2d5f2d34edecb9acaad44eb.tar.gz |
Provide a way to deal with rc.conf which may already be populated in certain
cases.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sade/config.c | 2 | ||||
-rw-r--r-- | usr.sbin/sysinstall/config.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 77cb9d0..56c3287 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -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 { diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 77cb9d0..56c3287 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -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 { |