summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-02-12 00:17:12 +0000
committerjkh <jkh@FreeBSD.org>1999-02-12 00:17:12 +0000
commit170b02f9461c3273f42e536c7291947bdb916ac6 (patch)
treec1f8c187c2ff54ac5561231e8da6c8622c30ffa4 /usr.sbin/ndc
parent959b4ace7e548ac9cbbda6d7f3c5fe8de9f88402 (diff)
downloadFreeBSD-src-170b02f9461c3273f42e536c7291947bdb916ac6.zip
FreeBSD-src-170b02f9461c3273f42e536c7291947bdb916ac6.tar.gz
Allow both old and new rc.conf syntax.
Diffstat (limited to 'usr.sbin/ndc')
-rw-r--r--usr.sbin/ndc/ndcedit.awk6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ndc/ndcedit.awk b/usr.sbin/ndc/ndcedit.awk
index 241416b..eb375b0 100644
--- a/usr.sbin/ndc/ndcedit.awk
+++ b/usr.sbin/ndc/ndcedit.awk
@@ -1,4 +1,4 @@
-# $Id: ndcedit.awk,v 1.7 1998/05/03 05:14:04 peter Exp $
+# $Id: ndcedit.awk,v 1.8 1998/07/31 08:47:16 phk Exp $
NR == 3 {
print "#"
print "# This file is generated automatically, do not edit it here!"
@@ -7,7 +7,9 @@ NR == 3 {
print ""
print "# If there is a global system configuration file, suck it in."
- print "if [ -f /etc/rc.conf ]; then"
+ print "if [ -f /etc/defaults/rc.conf ]; then"
+ print "\t. /etc/defaults/rc.conf"
+ print "elif [ -f /etc/rc.conf ]; then"
print "\t. /etc/rc.conf"
print "fi\n"
}
OpenPOWER on IntegriCloud