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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL
  4. Start .sh script on boot

Start .sh script on boot

Scheduled Pinned Locked Moved VOXL
3 Posts 2 Posters 753 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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        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