I want to auto run a custom script during start up
I am using i.mx8mmini board yocto
building using bitbake fsl-image-validation-imx
one can also check suggestions provided on
i.MX8M autostart application at boot
Hi Santhosh Kumar,
Please check below thread:
[Yocto] Auto run script when startup
Let us know if above thread do not solve your problem.
I have tried the steps in this https://www.dexterindustries.com/howto/auto-run-python-programs-on-the-raspberry-pi/
It works fine but the issue is the network configuration is not getting changed.
crontab -eand added below line@reboot sudo sh /home/root/startupscript.shThe contents of startupscript.sh is as below ifconfig eth0 192.168.36.75 downifconfig eth0 192.168.36.75 upIts taking the someother IP address. How to resolve or Let me know if there is any rcs script wherei can call the startupscript
If your system has /etc/inittab, try adding a line in it.
What the Linux /etc/inittab file tells your system to do | Network World
inittab is not found in my rfs, I tried as per this link also cron - Running command at startup on crontab - Ask Ubuntu
I placed the command sudo sh /home/root/startupscript.sh in /etc/rc.local before the exit 0 line
But things didn't work. it didn't execute the startupscript at all
Any other alternative..
Thanks Issue resolved...
edited the /etc/rc.local file and added the below line before the exit(0)
Santhosh Kumar S
Retrieving data ...