Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: agentsmith.android on July 05, 2012, 03:38:01 PM
-
Hi,
1. ".profile" for "tc" user is not running on login. I want to mention here that I have hacked rcS script for rootfs at many places. However, I don't see a reason why /home/tc/.profile need not run. Even when I do login with "su -s /bin/ash tc", it does not run. If I execute the script with ./.profile then it runs without any errors. Am I missing something?
2. Can any one tell me sequence of initial startup. I know it goes from init->/sbin/init->inittab->rc scripts->????. I dont have the code for /sbin/init. So, I was wondering if there is anything which runs after rcS before final user login.
Thanks.
-
With an un-hacked system, /home/tc/.profile definitely runs at login.
-
@gerald_clark: Hey, do u have any idea which part of rcS does that? I might have hacked something which should not be done.
-
I have no idea what or why you hacked.
-
I meant, do u know which part of rc script is responsible for running ".profile" on unhacked version. I have hacked it as I am running this on some custom hardware which does not have most of the hardware capabilities.
Thanks
-
Running a 'diff' on default and modified file could be a starting point to troubleshoot ;)
-
Hi agentsmith.android
Before you start hacking, you might want to mention what it is you are trying to achieve, before you
break something (Opps, too late). If you do ls -l /sbin/init you will see it is really a link back to /bin/busybox,
which is where many of the base commands come from. The sources for that are here:
http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/src/
-
Thanks Rich.
Busybox source is what I needed.
-
su does not execute .profile without "-" at the end. It's not triggered by any script, but by the shell when launched as a login shell.