Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: ikea78 on May 19, 2015, 03:36:54 PM

Title: Microcore - run script on start
Post by: ikea78 on May 19, 2015, 03:36:54 PM
I'm running the Raspberry Pi version of Microcore but need to run a simple command on startup:  cat /dev/ttyAMA0 or cat /dev/ttyACM0 (depending on the port).

Basically I just want the pi to boot up, and start displaying serial data coming in through the USB port. 

Where do I need to put this command and what do I need to do to make it run on the next boot? 
Any help would be appreciated.

Thank you
Title: Re: Microcore - run script on start
Post by: bmarkus on May 19, 2015, 03:45:22 PM
Edit /opt/bootlocal.sh, backup with

Code: [Select]
filetool.sh -b
and reboot.
Title: Re: Microcore - run script on start
Post by: curaga on May 19, 2015, 04:20:57 PM
bootlocal is backgrounded, for it to be seen .profile would be better.
Title: Re: Microcore - run script on start
Post by: ikea78 on May 19, 2015, 05:58:52 PM
I think you two have both helped me in the past.  I'm very thankful to have your support.  You guys are great.

Thanks again.