OK, *now* we only sort the file once (red face).

This commit is contained in:
Jordan K. Hubbard 2001-03-14 03:26:40 +00:00
parent ed6fd55a59
commit 56d6f15dca
2 changed files with 2 additions and 2 deletions

View File

@ -409,7 +409,7 @@ configRC_conf(void)
fclose(rcSite);
/* Tidy up the resulting file if it's late enough in the installation
for sort and uniq to be available */
if (file_readable("/usr/bin/sort") && file_readable("/usr/bin/uniq"))
if (RunningAsInit && file_readable("/usr/bin/sort") && file_readable("/usr/bin/uniq"))
(void)vsystem("sort /etc/rc.conf | uniq > /etc/rc.conf.new && mv /etc/rc.conf.new /etc/rc.conf");
}

View File

@ -409,7 +409,7 @@ configRC_conf(void)
fclose(rcSite);
/* Tidy up the resulting file if it's late enough in the installation
for sort and uniq to be available */
if (file_readable("/usr/bin/sort") && file_readable("/usr/bin/uniq"))
if (RunningAsInit && file_readable("/usr/bin/sort") && file_readable("/usr/bin/uniq"))
(void)vsystem("sort /etc/rc.conf | uniq > /etc/rc.conf.new && mv /etc/rc.conf.new /etc/rc.conf");
}