Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Startup

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> Other Help Topics
View previous topic :: View next topic  
Author Message
PaulSchroeder90



Joined: 20 May 2006
Posts: 7

PostPosted: Mon May 22, 2006 1:02 am    Post subject: Startup Reply with quote

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
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Mon May 22, 2006 5:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
[IDC]Dragon



Joined: 22 Apr 2006
Posts: 41
Location: Hannover, Germany

PostPosted: Mon May 22, 2006 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Mon May 22, 2006 8:19 pm    Post subject: Reply with quote

Opps, sorry.
It is .bash_profile
Back to top
View user's profile Send private message Visit poster's website
[IDC]Dragon



Joined: 22 Apr 2006
Posts: 41
Location: Hannover, Germany

PostPosted: Mon May 22, 2006 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> Other Help Topics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group