cn-progload: Update for compatibility with new cnsftp
This commit is contained in:
		
							parent
							
								
									8346e5ea59
								
							
						
					
					
						commit
						b10410c20b
					
				@ -18,7 +18,7 @@ cn-progload() {
 | 
				
			|||||||
			if [[ -n $slot ]]; then
 | 
								if [[ -n $slot ]]; then
 | 
				
			||||||
				echo "==NOTICE== Ignoring slot number for touchpanel project..."
 | 
									echo "==NOTICE== Ignoring slot number for touchpanel project..."
 | 
				
			||||||
			fi
 | 
								fi
 | 
				
			||||||
			printf 'put %q' "$project" | cnsftp "$addr:display"
 | 
								printf 'put %q %q' "$project" "/display/"| cnsftp "$addr"
 | 
				
			||||||
			cnssh "$addr" projectload
 | 
								cnssh "$addr" projectload
 | 
				
			||||||
			;;
 | 
								;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -30,13 +30,13 @@ cn-progload() {
 | 
				
			|||||||
			# Stop and delete current program in $slot
 | 
								# Stop and delete current program in $slot
 | 
				
			||||||
			cnssh "$addr" killprog -P$slot
 | 
								cnssh "$addr" killprog -P$slot
 | 
				
			||||||
			# Upload
 | 
								# Upload
 | 
				
			||||||
			printf 'put %q' "$project" | cnsftp "$addr:Program$slot"
 | 
								printf 'put %q %q' "$project" "/Program$slot" | cnsftp "$addr"
 | 
				
			||||||
			# Load the program
 | 
								# Load the program
 | 
				
			||||||
			cnssh "$addr" progload -p:$slot
 | 
								cnssh "$addr" progload -p:$slot
 | 
				
			||||||
			# Zip up the sig file in a temporary location
 | 
								# Zip up the sig file in a temporary location
 | 
				
			||||||
			zip -j - "$projfname.sig" > "$zigstash"
 | 
								zip -j - "$projfname.sig" > "$zigstash"
 | 
				
			||||||
			# Upload the zig
 | 
								# Upload the zig
 | 
				
			||||||
			printf 'put %q %q' "$zigstash" "$projfnamebase.zig" | cnsftp "$addr:Program$slot"
 | 
								printf 'put %q %q' "$zigstash" "/Program$slot/$projfnamebase.zig" | cnsftp "$addr"
 | 
				
			||||||
			;;
 | 
								;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		*)
 | 
							*)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user