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'