diff options
author | jkh <jkh@FreeBSD.org> | 2001-03-14 03:26:40 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2001-03-14 03:26:40 +0000 |
commit | 4a6cbeb9320e49ce120e8014c4610aae3ec77c29 (patch) | |
tree | 76ec299c09db52978c799f184af8e7879ac4f702 /usr.sbin | |
parent | 24b0122a843722df2d95f453a18f4fbad5ff8abc (diff) | |
download | FreeBSD-src-4a6cbeb9320e49ce120e8014c4610aae3ec77c29.zip FreeBSD-src-4a6cbeb9320e49ce120e8014c4610aae3ec77c29.tar.gz |
OK, *now* we only sort the file once (red face).
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, 2 insertions, 2 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 7a651dc..d84b249 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -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"); } diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 7a651dc..d84b249 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -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"); } |