UPDATE: 7/31/13, 10:00 a.m. EDT. Schneider Electric has formally agreed to acquire Invensys in a $5.2 billion cash-and-stock deal.

Magic Circle firms Freshfields Bruckhaus Deringer and Linklaters have taken the lead advising on a potential $5 billion sale of British engineering firm Invensys to France’s Schneider Electric, which is seeking to bolster its presence in the industrial automation business.