mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			Update sysupgrade
							parent
							
								
									61658e45aa
								
							
						
					
					
						commit
						efd5502355
					
				|  | @ -65,7 +65,7 @@ print_usage() { | ||||||
| 	echo "Usage:  ./sysupgrade [-option]" | 	echo "Usage:  ./sysupgrade [-option]" | ||||||
| 	echo "options:" | 	echo "options:" | ||||||
| 	echo "Remotely:" | 	echo "Remotely:" | ||||||
| 	echo "    -k                       updatee kernel" | 	echo "    -k                       update kernel" | ||||||
| 	echo "    -r                       update rootfs" | 	echo "    -r                       update rootfs" | ||||||
| 	echo "    --url=URL                URL for update file (.tgz format)" | 	echo "    --url=URL                URL for update file (.tgz format)" | ||||||
|   echo "Locally:" |   echo "Locally:" | ||||||
|  | @ -130,16 +130,16 @@ do | ||||||
| 	esac | 	esac | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| if [ $usage -eq 1 ] || [ $remotely -eq 1 ] && [ $locally -eq 1 ]; then | if [ $remotely -eq 1 ] && [ $locally -eq 1 ] || [ $usage -eq 1 ]; then | ||||||
|   print_usage; |   print_usage | ||||||
|   exit 1; |   exit 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| [ $locally -eq 0 ] && remotely=1 | [ $locally -eq 0 ] && remotely=1 | ||||||
| 
 | 
 | ||||||
| if [ $update_kernel -eq 0 ] && [ $update_rootfs -eq 0 ] && [ $locally -eq 0 ]; then | if [ $update_kernel -eq 0 ] && [ $update_rootfs -eq 0 ] && [ $locally -eq 0 ]; then | ||||||
|   update_kernel=1; |   update_kernel=1 | ||||||
|   update_rootfs=1; |   update_rootfs=1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| [ -z "${kernel_file}" ] && kernel_file="/tmp/uImage.${soc}" | [ -z "${kernel_file}" ] && kernel_file="/tmp/uImage.${soc}" | ||||||
|  | @ -163,4 +163,4 @@ download_firmware "${url}" && check_memory && writing_kernel "${kernel_file}" && | ||||||
| 
 | 
 | ||||||
| if [ $no_reboot -eq 0 ]; then | if [ $no_reboot -eq 0 ]; then | ||||||
|   quick_reboot |   quick_reboot | ||||||
| fi | fi | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue