OK, *now* we only sort the file once (red face).
This commit is contained in:
parent
ed6fd55a59
commit
56d6f15dca
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user