From 04a8392f8c7c75f585d48360774c6f1faa950f0c Mon Sep 17 00:00:00 2001 From: Matthew Veety Date: Mon, 7 Dec 2015 16:01:09 -0500 Subject: [PATCH] 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. --- rc/lib/rcmain | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rc/lib/rcmain b/rc/lib/rcmain index 260592bd7..e74d51365 100644 --- a/rc/lib/rcmain +++ b/rc/lib/rcmain @@ -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'