View previous topic :: View next topic |
Author |
Message |
PaulSchroeder90
Joined: 20 May 2006 Posts: 7
|
Posted: Mon May 22, 2006 1:02 am Post subject: Startup |
|
|
Hello
I currently boot off of a USB-HDD drive install
I wrote a script that i would like to be executed at startup
Is there anyway i could do this
-Paul |
|
Back to top |
|
|
roberts
Joined: 17 Apr 2006 Posts: 320 Location: OC CA USA
|
Posted: Mon May 22, 2006 5:19 am Post subject: |
|
|
System wide root run scripts use /opt/bootlocal.sh
User run non-X scripts use /home/dsl/.profile ( of course you could use sudo)
User run X scripts use /home/dsl/.xinitrc (again you could also use sudo here too) |
|
Back to top |
|
|
[IDC]Dragon
Joined: 22 Apr 2006 Posts: 41 Location: Hannover, Germany
|
Posted: Mon May 22, 2006 9:46 am Post subject: |
|
|
ahh, great to learn about .profile, I was looking for such. Instead, I clumsily placed non-X stuff in .xinirc.
Edit: I found no .profile. I created one in /home/dsl/, but that seems to have no effect. (back to .initrc)
Thanks,
Jörg |
|
Back to top |
|
|
roberts
Joined: 17 Apr 2006 Posts: 320 Location: OC CA USA
|
Posted: Mon May 22, 2006 8:19 pm Post subject: |
|
|
Opps, sorry.
It is .bash_profile |
|
Back to top |
|
|
[IDC]Dragon
Joined: 22 Apr 2006 Posts: 41 Location: Hannover, Germany
|
Posted: Mon May 22, 2006 9:33 pm Post subject: |
|
|
When is this invoked? I hope not every time a bash is started, like .bashrc or such.
The content confuses me, it checks for runlevel and some ssh stuff, only then does startx. I guess this is to determine a successful boot. Should we place our stuff inside the if's, too? |
|
Back to top |
|
|
|