Deleted Added
full compact
config.c (81709) config.c (81839)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $FreeBSD: head/usr.sbin/sade/config.c 81709 2001-08-15 17:10:49Z joe $
7 * $FreeBSD: head/usr.sbin/sade/config.c 81839 2001-08-17 16:05:54Z ru $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 369 unchanged lines hidden (view full) ---

385 time_t tp;
386
387 configTtys();
388 write_header = !file_readable("/etc/rc.conf");
389 rcSite = fopen("/etc/rc.conf", "a");
390 if (!rcSite)
391 return;
392 if (write_header) {
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 369 unchanged lines hidden (view full) ---

385 time_t tp;
386
387 configTtys();
388 write_header = !file_readable("/etc/rc.conf");
389 rcSite = fopen("/etc/rc.conf", "a");
390 if (!rcSite)
391 return;
392 if (write_header) {
393 fprintf(rcSite, "# This file now contains just the overrides from /etc/defaults/rc.conf\n");
394 fprintf(rcSite, "# please make all changes to this file.\n\n");
393 fprintf(rcSite, "# This file now contains just the overrides from /etc/defaults/rc.conf.\n");
394 fprintf(rcSite, "# Please make all changes to this file, not to /etc/defaults/rc.conf.\n\n");
395 fprintf(rcSite, "# Enable network daemons for user convenience.\n");
396 if ((t_loc = time(NULL)) != -1 && (cp = ctime(&t_loc)))
397 fprintf(rcSite, "# Created: %s", cp);
398 }
399
400 /* Now do variable substitutions */
401 for (v = VarHead; v; v = v->next) {
402 if (v->dirty) {

--- 599 unchanged lines hidden ---
395 fprintf(rcSite, "# Enable network daemons for user convenience.\n");
396 if ((t_loc = time(NULL)) != -1 && (cp = ctime(&t_loc)))
397 fprintf(rcSite, "# Created: %s", cp);
398 }
399
400 /* Now do variable substitutions */
401 for (v = VarHead; v; v = v->next) {
402 if (v->dirty) {

--- 599 unchanged lines hidden ---