码迷,mamicode.com
首页 > 系统相关 > 详细

shell error

时间:2018-02-11 14:51:56      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:sed   sdc   body   clu   exp   bsp   set   fastboot   cti   

shell “syntax error near unexpected token ‘$‘\r‘‘” 错误解决方法

sed ‘s/\r//‘ test_freq.sh >aa.sh

function loop()
{
adb wait-for-device
adb shell setenforce 0
adb shell chmod 777 /d/hisi_lpm3_debug/lpm3_test
adb shell chmod 777 /d/hisi_lpm3_debug/cluster_freq
adb shell chmod 777 /d/hisi_lpm3_debug/cluster_volt

adb shell chmod 777 /sys/devices/system/cpu/cpu0/online
adb shell chmod 777 /sys/devices/system/cpu/cpu1/online
adb shell chmod 777 /sys/devices/system/cpu/cpu2/online
adb shell chmod 777 /sys/devices/system/cpu/cpu3/online
adb shell chmod 777 /sys/devices/system/cpu/cpu4/online
adb shell chmod 777 /sys/devices/system/cpu/cpu5/online
adb shell chmod 777 /sys/devices/system/cpu/cpu6/online
adb shell chmod 777 /sys/devices/system/cpu/cpu7/online

if [ 0 -eq $1 ] ; then
adb shell am start -n com.hust.hoyihu/.MainActivity
fi

ping 127.0.0.1 -n 3 > null
loop 1
}

adb install  Hoyihu_O.apk
adb push test_video.mp4 /storage/sdcard0/

adb reboot bootloader
fastboot oem watchdog ap enable
fastboot getvar nve:HIMNTN@1111011111101010101111111010011000100110
fastboot oem boot


adb wait-for-device root
adb remount
adb shell setenforce 0
ping 127.0.0.1 -n 14 > null
loop 0

 

shell error

标签:sed   sdc   body   clu   exp   bsp   set   fastboot   cti   

原文地址:https://www.cnblogs.com/muhe221/p/8440852.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!