mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
export PATH variable
This commit is contained in:
parent
f2cebac5c9
commit
f078c9c9bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19413
@ -1,5 +1,11 @@
|
||||
# $Id: awkedit,v 1.1.1.1 1996/08/29 19:42:59 peter Exp $
|
||||
# $Id: ndcedit.awk,v 1.1 1996/08/29 21:46:46 peter Exp $
|
||||
NR == 3 {
|
||||
print "#"
|
||||
print "# This file is generated automatically, do not edit it here!"
|
||||
print "# Please change src/usr.sbin/ndc/ndcedit.awk instead"
|
||||
print "#"
|
||||
print ""
|
||||
|
||||
print "# If there is a global system configuration file, suck it in."
|
||||
print "if [ -f /etc/sysconfig ]; then"
|
||||
print "\t. /etc/sysconfig"
|
||||
@ -18,7 +24,12 @@ NR == 3 {
|
||||
printf "\t%s\n", $0
|
||||
printf "\t\tfi\n"
|
||||
} else {
|
||||
gsub(":/usr/ucb:", ":", $0);
|
||||
if (/PATH=/) {
|
||||
gsub(":/usr/ucb:", ":", $0);
|
||||
if (!/export/) {
|
||||
$0=$0"\nexport PATH";
|
||||
}
|
||||
}
|
||||
print;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user