Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-21-2009, 05:06 AM   #1
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,


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


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 01:21 AM
Need to execute shell script from link. chackercon Linux - Software 8 06-25-2008 04:16 PM
execute shell script in KDE Lotharster Linux - Newbie 1 11-21-2005 07:02 PM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 02:30 PM
shell script how to execute x2000koh Programming 6 07-29-2003 05:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:09 PM.

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