LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-21-2009, 04:06 AM   #1
Jurrian
Member
 
Registered: Sep 2008
Posts: 58

Rep: Reputation: 15
which script does ash shell execute first


Hi all,

I installed a embedded demo version of linux on an embedded system. It runs fine, starts an Xserver and everything seems to work fine. However, I tried to change the Xserver, but that gives some errors. So I found the script that started the Xserver, changed it to another dir so it wouldn't be executed, and tried to start the Xserver manually. This wouldn't work with the error can't open display.

So I expected the display value not beeing set correctly. export DISPLAY=:0 wouldn't help me out, though. Perhaps there is some script setting other environments right, that are not available to me because I use ssh to connect to my embedded system.

executing sh command told me I am using an ash shell, and reading the man page of ash tells me ash searches for /etc/profile or /$home/.profile scripts that will be executed. Neither of them exists.

The rcS script is running all scripts in init.d, but none of them changes things to the environment, they only start ssh, xserver, create devices.

Does anyone knows which script starts the rcS, or did I miss a script that the ash shell looks for?
EDIT: the inittab script starts the rcS, but no change in environment in there..

Thanks in advance,

Jurrian

Last edited by Jurrian; 01-21-2009 at 04:35 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 12:21 AM
Need to execute shell script from link. chackercon Linux - Software 8 06-25-2008 03:16 PM
execute shell script in KDE Lotharster Linux - Newbie 1 11-21-2005 06:02 PM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 01:30 PM
shell script how to execute x2000koh Programming 6 07-29-2003 04:20 PM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration