Added change to /rc/lib/rcmain to allow execution of /rc/lib/rcmain.local if it exists. /rc/lib/rcmain.local is similar to $home/lib/profile in that it will only be executed with -l, but is site-wide.

front
Matthew Veety 2015-12-07 16:01:09 -05:00
parent 9e09742e9b
commit 04a8392f8c
1 changed files with 8 additions and 2 deletions

View File

@ -16,12 +16,18 @@ if not{
}
fn sigexit
if(! ~ $#cflag 0){
if(flag l && /bin/test -r $home/lib/profile) . $home/lib/profile
if(flag l && /bin/test -r $home/lib/profile){
if(/bin/test -r /rc/lib/rcmain.local) . /rc/lib/rcmain.local
. $home/lib/profile
}
status=''
eval $cflag
}
if not if(flag i){
if(flag l && /bin/test -r $home/lib/profile) . $home/lib/profile
if(flag l && /bin/test -r $home/lib/profile){
if(/bin/test -r /rc/lib/rcmain.local) . /rc/lib/rcmain.local
. $home/lib/profile
}
status=''
if(! ~ $#* 0) . $*
. -i '#d/0'