shell中的sed使用

    • commit 9c51240d3976af2a6aaa66d238c45b5f571eed4f
      Author: xuhucheng <[email protected]>
      Date: Fri Jan 12 10:01:51 2018 +0800

      修改倒屏之后无法U盘升级屏参的问题

      diff --git a/vendor/mstar/supernova/projects/tvos/main/main.cpp b/vendor/mstar/supernova/projects/tvos/main/main.cpp
      index 099dfc5..33de477 100755
      --- a/vendor/mstar/supernova/projects/tvos/main/main.cpp
      +++ b/vendor/mstar/supernova/projects/tvos/main/main.cpp
      @@ -1963,6 +1963,12 @@ void* try_update_files(void* pdata)
      "busybox sed -i 's#^m_pPanelName.*;#m_pPanelName = \"/config/panel/panel.ini#g' /config/model/Customer_1.ini");
      LOG();
      MSrv_Control::GetInstance()->userSystemCmd(cmdline);
      + //After the screen down replace panel ini file...add by xuhucheng 20180112
      + snprintf(cmdline, 148,
      + "busybox sed -i 's#^m_ppanelname.*i#m_ppanelname = /config/panel/panel.ini#g' /config/model/Customer_1.ini");
      + LOG();
      + MSrv_Control::GetInstance()->userSystemCmd(cmdline);
      + //end
      snprintf(cmdline, 200,
      "grep \"^m_wPanelWidth.*=.*1920;\" /config/panel/panel.ini && busybox sed -i 's#ro.sf.lcd_density=.*#ro.sf.lcd_density=160#g' /system/build.pro
      LOG();

      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
        •  
        •  

      已读

  • 8月3日 15:07

    • 李盼

      busybox sed -i 's#MIRROR_OSD = .*#MIRROR_OSD = True;#g' /config/model/Customer_1.ini

      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
        •  
        •  
    • [misc_mirror_cfg]
      mirror_osd = False
      mirror_osd_type = 0
      mirror_video = False
      mirror_video_type = 0

      •  
      •  
      •  
      •  
      •  
      •  
      •  
      •  
        •  
        •  
  • 8月3日 16:49

    • busybox sed -i '/mirror_osd /s#= .*#= False#' /config/model/Customer_1.ini

猜你喜欢

转载自blog.csdn.net/weixin_38451161/article/details/81563774