Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    Yuzukilizard V851S autostart settings

    V853系列-AI视觉
    2
    3
    91
    Loading More Posts
    • 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.
    • S
      sergpenshin LV 4 last edited by

      Hi.
      would tell me please (show an example) how to configure the system so that the required executable file is launched at system startup.

      whycan 1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 @sergpenshin last edited by

        @sergpenshin

        add some command at the end of target/allwinner/{target-board}/busybox-init-base-files/etc/init.d/rc.final

        在此文件的最后添加需要开机执行的命令: target/allwinner/{target-board}/busybox-init-base-files/etc/init.d/rc.final

        S 1 Reply Last reply Reply Quote Share 0
        • S
          sergpenshin LV 4 @whycan last edited by

          @whycan
          Thank you. Yes indeed, in this way it works.
          But can it be done as Init Scripts?
          I tried to create a script in init.d

          #!/bin/sh /etc/rc.common
          # Example script
          # Copyright (C) 2007 OpenWrt.org
          
          START=41
          STOP=15
          
          start()
          {
          echo start
          my_example
          }
          stop()
          {
          echo stop
          killall my_example
          }
          

          Further

          /etc/init.d/my_example enable
          

          Then I made a reboot - but my_example did not start.
          At the same time, the script itself is working, if execute

          /etc/init.d/my_example start
          

          everything works. Apparently I did something wrong. Please help me find the error!

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策