Start .sh script on boot
-
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!
-
@Henry-Cappel The easiest way is with a systemd service that lives in
/etc/systemd/systemIf 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.servicefile created, you can enable it to run on boot with:
systemctl enable $SERVICE_NAMEor disable it from running on boot with
systemctl disable $SERVICE_NAME -
Thanks so much!! This is super easy solution
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