1997-01-14 07:20:47 +00:00
|
|
|
# $FreeBSD$
|
1996-08-29 21:46:46 +00:00
|
|
|
NR == 3 {
|
1996-11-04 23:57:40 +00:00
|
|
|
print "#"
|
|
|
|
print "# This file is generated automatically, do not edit it here!"
|
|
|
|
print "# Please change src/usr.sbin/ndc/ndcedit.awk instead"
|
|
|
|
print "#"
|
|
|
|
print ""
|
|
|
|
|
1996-08-29 21:46:46 +00:00
|
|
|
print "# If there is a global system configuration file, suck it in."
|
|
|
|
print "if [ -f /etc/sysconfig ]; then"
|
|
|
|
print "\t. /etc/sysconfig"
|
|
|
|
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"
|
|
|
|
getline
|
|
|
|
printf "\t%s\n", $0
|
|
|
|
getline
|
|
|
|
printf "\t%s\n", $0
|
|
|
|
getline
|
|
|
|
printf "\t%s\n", $0
|
|
|
|
printf "\t\tfi\n"
|
|
|
|
} else {
|
1996-11-04 23:57:40 +00:00
|
|
|
if (/PATH=/) {
|
|
|
|
gsub(":/usr/ucb:", ":", $0);
|
|
|
|
if (!/export/) {
|
|
|
|
$0=$0"\nexport PATH";
|
|
|
|
}
|
|
|
|
}
|
1996-08-29 21:46:46 +00:00
|
|
|
print;
|
|
|
|
}
|
|
|
|
}
|