OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: kkazakov13 on January 24, 2007, 10:19:21 am
-
I want some place where I can execute commands, _after_ all scripts have finished, and after ipkg-link finishes too. Anyone knows where I can put a command?
-
There are several ways:
You can put a new script with your comands into /etc/rc.d/init.d/ and link it to the runlevel directories /etc/rc.d/rc.?
with a number (as the other linked scripts).
This number determines the porder in which the scripts are called during system start. So choose a high number in order to let it execcute after all the other scripts.
Second way:
If you want to let the programs execute after login, put them into ~/.bash_profile
Thrid way:
If you want them to be executed durint X startup, put them into ~/.xinitrc or /usr/X11R6/bin/startx
daniel
-
I thought already about script in rc.d/ runlevel dirs, but what I wanted is sth like rc.local script on my slackware ... something simple as this
about second and third way - I don't want these cases. I know them, but what I want is really execute after ipkg-link and all other commands completes.
If no other way, will create a script S99something ... but I wanted simpler everyday solution
-
I thought already about script in rc.d/ runlevel dirs, but what I wanted is sth like rc.local script on my slackware ... something simple as this
about second and third way - I don't want these cases. I know them, but what I want is really execute after ipkg-link and all other commands completes.
If no other way, will create a script S99something ... but I wanted simpler everyday solution
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152259\"][{POST_SNAPBACK}][/a][/div]
rc.local would be the place. just uncomment the section in rc.sysinit or rc.rofilesys which executes rc.local.
-
Thanks, that's all i needed
-
Actually it's not the correct one It tries to execute commands before all startup scripts, therefore mine
swapon /dev/hda2 did not succeeded, because pcmcia hasn't enabled hdd yet
-
Actually it's not the correct one It tries to execute commands before all startup scripts, therefore mine
swapon /dev/hda2 did not succeeded, because pcmcia hasn't enabled hdd yet
Yep ... I had a look at the init scripts:
rc.local is executed from rc.sysinit ....
and that is executed before the rc script ... which is the one that executes the runlevel specific stuff.
You might like to comment the rc.local stuff in rc.sysinit and add something at the end of the rc script to execute rc.local.
I'm concidering writing bsd like init scripts for my Z (I also like slackware) .... if I ever do that do you want me to drop you a line ?
-
Actually it's not the correct one It tries to execute commands before all startup scripts, therefore mine
swapon /dev/hda2 did not succeeded, because pcmcia hasn't enabled hdd yet
Yep ... I had a look at the init scripts:
rc.local is executed from rc.sysinit ....
and that is executed before the rc script ... which is the one that executes the runlevel specific stuff.
You might like to comment the rc.local stuff in rc.sysinit and add something at the end of the rc script to execute rc.local.
I'm concidering writing bsd like init scripts for my Z (I also like slackware) .... if I ever do that do you want me to drop you a line ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152523\"][{POST_SNAPBACK}][/a][/div]
Sure, thanks