Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Flight Core and Legacy VOXL
  3. Start .sh script on boot

Start .sh script on boot

Scheduled Pinned Locked Moved Unsolved Flight Core and Legacy VOXL
voxl
3 Posts 2 Posters 822 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Henry CappelH Offline
    Henry CappelH Offline
    Henry Cappel
    Contributor
    wrote on last edited by
    #1

    Is there a simple way to start a bash script on boot of the device? I'm finding that common linux solutions aren't working on yocto.

    Thanks!

    1 Reply Last reply
    0
    • tomT Offline
      tomT Offline
      tom
      admin
      wrote on last edited by
      #2

      @Henry-Cappel The easiest way is with a systemd service that lives in /etc/systemd/system

      If you go to that directory on VOXL you can see a bunch of examples of how we do it.

      Once you have a $SERVICE_NAME.service file created, you can enable it to run on boot with:
      systemctl enable $SERVICE_NAME

      or disable it from running on boot with
      systemctl disable $SERVICE_NAME

      1 Reply Last reply
      0
      • Henry CappelH Offline
        Henry CappelH Offline
        Henry Cappel
        Contributor
        wrote on last edited by
        #3

        Thanks so much!! This is super easy solution

        1 Reply Last reply
        0

        Reading along? Create a free ModalAI Forum account to join in.

        With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

        Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        ModalAI
        Categories Recent Tags ModalAI.com Docs
        © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups