sysconfig -> rc.conf

Submitted by:	Igor Vinokurov <igor@cs.ibank.ru>
This commit is contained in:
Jordan K. Hubbard 1997-05-27 07:19:57 +00:00
parent fbd31922cd
commit 5df075e4ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26191

View File

@ -1,4 +1,4 @@
# $Id$
# $Id: ndcedit.awk,v 1.4 1997/02/22 16:08:19 peter Exp $
NR == 3 {
print "#"
print "# This file is generated automatically, do not edit it here!"
@ -7,15 +7,15 @@ NR == 3 {
print ""
print "# If there is a global system configuration file, suck it in."
print "if [ -f /etc/sysconfig ]; then"
print "\t. /etc/sysconfig"
print "if [ -f /etc/rc.conf ]; then"
print "\t. /etc/rc.conf"
print "fi\n"
}
{
if ($1 == "named") {
printf "\t\t# $namedflags is imported from /etc/sysconfig\n"
printf "\t\tif [ \"X${namedflags}\" != \"XNO\" ]; then\n"
printf "\t\t\tnamed ${namedflags} && {\n"
printf "\t\t# $namedflags is imported from /etc/rc.conf\n"
printf "\t\tif [ \"X${named_flags}\" != X\"NO\" ]; then\n"
printf "\t\t\tnamed ${named_flags} && {\n"
getline
printf "\t%s\n", $0
getline