octeon: only copy sysupgrade file if present
this caused 'mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory' when running sysupgrade -n Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -5,7 +5,7 @@ move_config() { | |||||||
| 	case "$(cat /tmp/sysinfo/board_name)" in | 	case "$(cat /tmp/sysinfo/board_name)" in | ||||||
| 		erlite) | 		erlite) | ||||||
| 			mount -t vfat /dev/sda1 /mnt | 			mount -t vfat /dev/sda1 /mnt | ||||||
| 			mv -f /mnt/sysupgrade.tgz / | 			[ -f /mnt/sysupgrade.tgz ] && mv -f /mnt/sysupgrade.tgz / | ||||||
| 			umount /mnt | 			umount /mnt | ||||||
| 			;; | 			;; | ||||||
| 	esac | 	esac | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin