WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Microcore - run script on start  (Read 1506 times)

Offline ikea78

  • WikiUser
  • *
  • Posts: 5
Microcore - run script on start
« on: May 19, 2015, 12: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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Microcore - run script on start
« Reply #1 on: May 19, 2015, 12:45:22 PM »
Edit /opt/bootlocal.sh, backup with

Code: [Select]
filetool.sh -b
and reboot.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10693
Re: Microcore - run script on start
« Reply #2 on: May 19, 2015, 01:20:57 PM »
bootlocal is backgrounded, for it to be seen .profile would be better.
The only barriers that can stop you are the ones you create yourself.

Offline ikea78

  • WikiUser
  • *
  • Posts: 5
Re: Microcore - run script on start
« Reply #3 on: May 19, 2015, 02: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.