fix:关闭扫描脚本
This commit is contained in:
		
							parent
							
								
									d8a81e2732
								
							
						
					
					
						commit
						c8e18dfec4
					
				
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,15 +1,18 @@ | |||||||
| TOOLCHAIN_PATH=./mac | TOOLCHAIN_PATH=./mac | ||||||
| DOWNLOAD_PATH=../logs | DOWNLOAD_PATH=../logs | ||||||
| SCAN_PATH=../scan | SCAN_PATH=../scan | ||||||
|  | # 下载轨迹
 | ||||||
| stud: | stud: | ||||||
| 	cd $(TOOLCHAIN_PATH) && \
 | 	cd $(TOOLCHAIN_PATH) && \
 | ||||||
| 	./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH) | 	./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH) | ||||||
|  | # 下载hilog日志
 | ||||||
| hilog: | hilog: | ||||||
| 	cd $(TOOLCHAIN_PATH) && \
 | 	cd $(TOOLCHAIN_PATH) && \
 | ||||||
| 	TIMESTAMP=$$(date +%Y%m%d%H%M%S) && \
 | 	TIMESTAMP=$$(date +%Y%m%d%H%M%S) && \
 | ||||||
| 	./hdc shell "tar -czvf /data/$${TIMESTAMP}_log.tar.gz /data/log/" && \
 | 	./hdc shell "tar -czvf /data/$${TIMESTAMP}_log.tar.gz /data/log/" && \
 | ||||||
| 	./hdc file recv /data/$${TIMESTAMP}_log.tar.gz $(DOWNLOAD_PATH) && \
 | 	./hdc file recv /data/$${TIMESTAMP}_log.tar.gz $(DOWNLOAD_PATH) && \
 | ||||||
| 	./hdc shell "rm -rf /data/$${TIMESTAMP}_log.tar.gz" | 	./hdc shell "rm -rf /data/$${TIMESTAMP}_log.tar.gz" | ||||||
|  | # 打开hilog
 | ||||||
| open: | open: | ||||||
| 	cd $(TOOLCHAIN_PATH) && \
 | 	cd $(TOOLCHAIN_PATH) && \
 | ||||||
|     ./hdc shell hilog -w stop && \
 |     ./hdc shell hilog -w stop && \
 | ||||||
| @ -19,10 +22,11 @@ open: | |||||||
|     ./hdc shell hilog -p off && \
 |     ./hdc shell hilog -p off && \
 | ||||||
|     ./hdc shell hilog -b D |     ./hdc shell hilog -b D | ||||||
| 	./hdc shell hilog -w start -t kmsg -m none | 	./hdc shell hilog -w start -t kmsg -m none | ||||||
|  | # 删除
 | ||||||
| delete: | delete: | ||||||
| 	# 删除当前目录的data文件夹 | 	# 删除当前目录的data文件夹 | ||||||
| 	rm -rf $(DOWNLOAD_PATH)/data | 	rm -rf $(DOWNLOAD_PATH)/data | ||||||
| 
 | # 关闭扫描脚本
 | ||||||
| scan: | scan: | ||||||
| 	cd $(TOOLCHAIN_PATH) && \
 | 	cd $(TOOLCHAIN_PATH) && \
 | ||||||
| 	./hdc shell mount -o remount,rw / \
 | 	./hdc shell mount -o remount,rw / \
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user