Navigation

    全志在线开发者论坛

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

    开机启动脚本写入 /etc/resolv.conf 脚本执行不完全

    MR Series
    3
    3
    1825
    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.
    • D
      ddrddr LV 5 last edited by

      0ED7F112-5181-46ef-BC4C-2C336DF46DF5.png

      请教一下,我在Tina下的/etc/rc.local里面增加了一个开机启动的脚本,目标是上电以后写入DNS SERVER地址到/etc/resolv.conf里面,但是现在好像只执行了红框里面这句话,没有执行绿框里面这句话,开机后/etc/resolv.conf这个文件里面还是空白,这个可能是什么原因呀

      1 Reply Last reply Reply Quote Share 0
      • zznzzn
        zznzzn LV 6 last edited by

        检查一下是否符合语法 & 后面不换行试试

        A 1 Reply Last reply Reply Quote Share 0
        • A
          abcdef LV 5 @zznzzn last edited by

          @zznzzn 我目前这样写的,还是写入失败,/etc/resolv.conf里面没有东西,会不会是权限问题?ppdd那个正常
          1663836218094.png

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

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

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