mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
OK, *now* we only sort the file once (red face).
This commit is contained in:
parent
ed6fd55a59
commit
56d6f15dca
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue