i want to automatically run a simple shell script at linux startup
i’m working on arm based board running a qtopia & linux 2.6.28
so,i put my script at /etc/int.d/scriptname and i make it executable using :
chmod +x /etc/init.d/scriptname
and then i link it by :
ln -s /etc/init.d/scriptname /etc/rc.d/S10scriptname
the problem is that whenever i restart or switch the board off and then on again to test whether the script is running or not i find out that the script is removed !
i tried also to modify the rcS script that is located at /etc/int.d/ and add a few lines to test it but every modification i do is totally removed after i restart the board and i find only the original file.
i’m still new to linux and i tried to search but i found nothing
thanx
Some how I’m thinking you are running from a read only filesystem or initrd or initramfs. If that’s the case you’ll need to find out how to rebuild that filesystem.
How to do this varies by embedded system or distribution.
This might be a question for the electronics or embedded StackExchange.