导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    Yuzukilizard V851S autostart settings

    V Series
    3
    4
    1519
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      sergpenshin LV 4 最后由 编辑

      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 条回复 最后回复 回复 引用 分享 1
      • whycan
        whycan晕哥 LV 9 @sergpenshin 最后由 编辑

        @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 条回复 最后回复 回复 引用 分享 1
        • S
          sergpenshin LV 4 @whycan 最后由 编辑

          @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!

          V 1 条回复 最后回复 回复 引用 分享 1
          • V
            vejoker LV 4 @sergpenshin 最后由 编辑

            @sergpenshin
            Rename my_example to S99my_example, then run /etc/init.d/S99my_example enable, and try rebooting

            重命名 my_example 为 S99my_example
            /etc/init.d/S99my_example enable
            然后 reboot 重启试试

            1 条回复 最后回复 回复 引用 分享 0
            • 1 / 1
            • First post
              Last post

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

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