mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
export PATH variable
This commit is contained in:
parent
f2cebac5c9
commit
f078c9c9bc
1 changed files with 13 additions and 2 deletions
|
|
@ -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 a new issue