mvebu: cortexa9: fix Linksys upgrade, restore config step
It appears that the refactor of the upgrade process for NAND devices                                                                                                                            resulted in the nand_do_upgrade_success step not being called for
devices using the linksys.sh script. As a result, configuration was
not preserved over sysupgrade steps.
This restores the preservation of configs for mvebu/cortexa9 devices using the
linksys.sh script.
Fixes: e25e6d8e54 ("base-files: fix and clean up nand sysupgrade code")
Signed-off-by: Michael Trinidad <trinidude4@hotmail.com>
			
			
This commit is contained in:
		 Michael Trinidad
					Michael Trinidad
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							65f8089b7a
						
					
				
				
					commit
					d1c1e10e89
				
			| @@ -68,7 +68,12 @@ platform_do_upgrade_linksys() { | |||||||
| 			CI_UBIPART="rootfs2" | 			CI_UBIPART="rootfs2" | ||||||
| 		fi | 		fi | ||||||
|  |  | ||||||
| 		nand_upgrade_tar "$1" | 		if nand_upgrade_tar "$1" ; then | ||||||
|  | 			nand_do_upgrade_success | ||||||
|  | 		else | ||||||
|  | 			nand_do_upgrade_failed | ||||||
|  | 		fi | ||||||
|  |  | ||||||
| 	} | 	} | ||||||
| 	[ "$magic_long" = "27051956" -o "$magic_long" = "0000a0e1" ] && { | 	[ "$magic_long" = "27051956" -o "$magic_long" = "0000a0e1" ] && { | ||||||
| 		get_image "$1" | mtd write - $part_label | 		get_image "$1" | mtd write - $part_label | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user